Significance of “.WORLD” on end of Oracle connection
What is the significance of having “.WORLD” on the end of an Oracle connection name? I’ve found things to still connect without that suffix. I’ve also noticed that both the client tnsnames.ora file and...
View Articlefastest way to generate permutations of a table with n columns and put in a...
As i am from mathematics background and require to do some huge permutations to start in my work kind help. If i have a table by name sample1 with n columns what is fastest way to get all the...
View Articlehow can I use a CASE with an alias defined befor case?
how can I use an alias like pop in a further case like in this example (Oracle database). select (select sum(ccs_pop) from rap4) as pop, case when pop+x=a+b+c then pop+x end as sum1, case when...
View ArticleHow to pull sales for every single month based on my query below using ORACLE
So I am working on a report right now that pulls customer information, and sales for a particular date range, who used a PROMOTION CODE. My current query pulls all the data I need and gives me a sum of...
View ArticleSQL for Inserting the system date and a fixed time (not the system time) in a...
I have a query like this: Insert into UNITRIP (START_TIME, END_TIME) (TO_DATE('10/20/2015 06:05:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('10/20/2015 07:34:06', 'MM/DD/YYYY HH24:MI:SS') I require a sql...
View ArticleOracle: Select on data from a CSV file
I have a CSV file with many integers in the form: id --- 1 2 3 I need to write a statement that selects ids from a table that are in the list in my CSV. I could just convert the data 1000 elements at a...
View ArticleDistinct 3 columns and 4th column with sum [closed]
how can I select in a Oracle DB all columns but some of them DISTINCT. I have columns A,B,C that I want distinct and column D that I want the sum of the rows. A B C D 1 2 3 10 1 2 3 20 1 2 4 1000 And I...
View ArticleDifference between ASYNC & SYNC real time apply
What is the difference between a data guard (Oracle 11g) operating in max performance ASYNC mode and enabling real time apply and a data guard operating in maximum availability SYNC and enabling real...
View ArticleWhy shouldn't I create a new user on Oracle SYSTEM Tabespace? [closed]
For example: CREATE USER c##mybear IDENTIFIED BY pretty DEFAULT TABLESPACE USERS QUOTA 500M ON SYSTEM; So, Why shouldn’t I create a new user on Oracle SYSTEM Tabespace?
View ArticleGrid Control Standby database status: Creation status unknown
After using Grid Control to add standby database, Data Guard status of standby database is showing “Creation status unknown”. However, dataguard status on both primary and standby databases are OK....
View ArticleHow system resolves when particular resource lock at uncommitted transaction
Let us assume Transaction T1#: Initiated on 2015-10-30 10:25:41.380 Transaction T2#: Initiated on 2015-10-30 10:25:41.580 The above two transactions are initiated through application. T1# & T2#...
View ArticleActivating standby DR after opening it in read-write mode
I have a primary and a standby database. Both two node RAC database. As some testing had to be done in standby database, I had to open it in read-write mode. I cancelled the recovery in standby and...
View ArticleAdd standby database on different OS version?
Primary database is installed on RHEL 6.1. Standby database software is installed on RHEL 7.0. I am trying to add new standby database by using Grid Control. Database versions are same 11.0.2.0.3. I...
View ArticleOracle: converting a TNS entry with SID to instantclient?
How do I convert a TNS entry that has a SID to instantclient format? I’m able to connect with a TNS string but not with the equivalent (I thought!) instantclient string. $ ./sqlplus...
View ArticleSet a variable outside loop and fetch it every item of loop
My oracle version : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi I’m trying to set a variable outside loop and make its value change as the each item of loop. (Just like we usually...
View ArticleAppend hint with autotrace
I’m doing a direct-path insert which executes successfully. When I try to autotrace the execution, I get the ORA-12838: cannot read/modify an object after modifying it in parallel. SQL> insert into...
View Articlearchiver stuck after set log_archive_dest_2 to fast recovery area oracle
All data guard expert, I am currently trying to configure a primary database for creating physical standby database with an oracle 11g stand alone database. Oracle version: 11.2.0.4 It’s on archivelog...
View ArticleSelect performance problems with conditional index vs non-conditional on...
We are trying to change some indexes on a large-volume table to be conditional indexes (function-based indexes) to reduce how much space is being used for indexes against this table. When testing the...
View ArticleRMAN backup of RAC database failing
Backup goes through if I don’t have any explicit connection to any instance : RUN { ALLOCATE CHANNEL ch1 TYPE DISK FORMAT '\192.168.2.11testDF_CH00_%U'; ALLOCATE CHANNEL ch2 TYPE DISK FORMAT...
View ArticleOracle TNS Permission denied when creating database
I hope you can help me. I need to restore an Oracle 9i (9.2.0.6.0) database on a Windows Server 2003 R2 x64 from a cold backup. I managed to get the 9i installer and the version patch (since I was told...
View Article