db2 (LUW) equivalent for oracle drop user cascade
This question is related to creating and initialising test and development databases for an application that has the database running on LUW (linux-unix-windows) On oracle, we have an os user (on...
View ArticleHow to make sqlplus output appear in one line?
I have a table with 100 columns. When selecting data in SQL Plus the output wraps, making it difficult to read. What I’d rather like is either a horizontal scroll bar to appear or somehow send the...
View ArticleNextBuffer operation takes a long time when there are no rows in a table
We’re trying to get data from a table which contains no rows. The query runs fast, but the SDE gets stuck on NextBuffer command. Some code that we’re using: IQueryName2 queryName2 = (IQueryName2)new...
View ArticleOracle DBMS Scheduler – what if database fails?
We are moving some Oracle overnight jobs off a cron server and running them via Oracle DBMS Scheduler instead. It is my understanding that if the database fails overnight then the job email...
View ArticleOracle: How to find non-local (background) processes in Windows Machine
Following link advises to find non-local background processes and kill them using following bash script. Solution 1) : without shutdown anything just kill that database processes which are not local...
View ArticleOracle user locks (dbms_lock): guaranteed order of requests granted?
I was wondering if Oracle guarantees that the sequence of dbms_lock.request granted is the same as the sequence in which they were requested. In my tests it always was the case, but I couldn’t find any...
View ArticleCheck the Oracle 11g R2 installation type
How to check the if the installation of Oracle Database is done with Administrator Option Type? There are four installation types while installing the Oracle 11g R2 as below: Instant Client...
View ArticleHow can I combine two external list in SharePoint 2013?
I have 2 external lists: – SQL – Oracle Both have the same columns, but in diferent server (SharePoint, SQL and Oracle). I need to combine the lists in one. How can I do that?
View ArticleSelect on Tablw
Consider the below query from DB1, which has DBLINK FOR Table TAB on DB2: SELECT * FROM [TAB] FOR UPDATE NOWAIT When I executed the query on 20 processes in parallel, 16 of the processes were...
View ArticleUsing oracle easy connect does it really connect to the remote DB?
I tried connecting to remote host db using : sqlplus abc/abc@hostname1:1000/ABC And tried printing !hostname it still shows me local hostname from which I am running and not HOSTNAME1. So if I want...
View ArticleSQLNET.ALLOWED_LOGON_VERSION=12 and JDBC thin client
To fix password security issues we need to set SQLNET.ALLOWED_LOGON_VERSION=12. According to the Oracle Database Net Services Reference: Note the following implications of setting the value to 12: …...
View ArticleWhy does second instance of database not open?
SQL> startup ORACLE instance started. Total System Global Area 3841982464 bytes Fixed Size 2025392 bytes Variable Size 788531280 bytes Database Buffers 3036676096 bytes Redo Buffers 14749696 bytes...
View ArticleWhat is the cost to create Materialized View log
Recently I ran DBMS_ADVISOR.TUNE_MVIEW and it gives me several lines to CREATE MATERIALIZED VIEW LOG ON "MYSCHEMA"."COMPANY" WITH ROWID CREATE MATERIALIZED VIEW LOG ON "MYSCHEMA"."BOARD" WITH ROWID...
View ArticleDelete backups from old incarnation in rman
I did a refresh on a non-production database and these are the incarnations: List of Database Incarnations DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time 1 1 ORCL 1355555557 PARENT 1...
View ArticleSpecific issue on data pump API in oracle
I have a client/server architecture. Using an Oracle dbms on the database server side. I need to perform a user-triggered (from client side) backup of the database, where the best way to perform that...
View Articlequestion on oracle query performance/tuning
we have a query with large union all with a lot of tables. If that query gets hung up, it will hold up alter statements on those tables we should break the query up into individual ones to minimize...
View ArticleORA-00907: missing right parenthesis on query with subqueries
I am getting ORA-00907: missing right parenthesis for the following query: SELECT PEOPLE.NAME FROM CLIENTS K INNER JOIN PEOPLE ON K.ID_L = PEOPLE.ID_L WHERE NOT EXISTS ( (SELECT DISTINCT ARTIST.ID_U...
View ArticleOptimize rows to columns conversion
I have a big Oracle table (around 40 million rows) that looks like this: ID Name Question Answer Reason 3 Name1 1 Yes blah blah 3 Name1 2 No NA 3 Name1 3 No NA 3 Name1 4 Yes blah2 3 Name1 5 Yes null 3...
View ArticleLow performance oci_execute
I work with a PHP application that connects to an Oracle database. Sometimes, the PHP executes a large query from a large database the page loads for ages (more than 200s). But I’ve seen something...
View ArticleOracle Triggers – Before Update and Before Insert – Separate or Combined?
I’m running Oracle DB 9i. I have a table with various constraints to ensure data integrity. In addition to the constraints, I have triggers on BEFORE INSERT and BEFORE UPDATE to ensure that necessary...
View Article