Oracle Error 12560 generating big sqlnet.log file
I have a Windows 2008 server which have two versions of Oracle: 11.2.0 and 12.1.0 A huge log file is being generated on the following path:...
View Articlepermissions for yet another “ORA-06512: table or view does not exist” scenario
See the code below. I’m running the code with user x in schema y. The exact same code works if I run it by user x in schema x, but not with user x in schema y. I get the error ORA-06512: table or view...
View ArticleHow to get the DDL for Oracle object without extra characters
When using Oracle’s dbms_metadata.get_ddl for getting DDL I see some extra characters, especially there are whitespace characters at very beginning of DDL script. For example, if I create this sample...
View ArticleWhy query plan changes by number of rows
I execute following two queries on an oracle database: select * from qsn join plc on plc.fk_qsn = qsn.id where rownum < 48507 which returns result in less than a second and with following execution...
View ArticleWhy is a Full Database Backup (as opposed to a level 0 backup) required in...
The Oracle 12c 2 Day DBA manual states: While whole database backups can be an important element in your overall backup strategy, they are also a required step in some situations, such as when you...
View ArticleNot getting current IP address in my oracle database [closed]
I have installed Oracle database in my local machine and my local machine IP address is – 192.168.1.55 but in Toad its showing different SQL> SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM dual;...
View ArticleLGWR is switching frequently in every 3,4,7 minutes. what should i do
I am running Oracle 11g R2 single instance on Linux 6.7. Data guard is also configured. In a database I have 4 groups of redologs, each group has 2 members and each logfile size is 200mb. The problem I...
View ArticleWhy can't I SPOOL an EXPLAIN PLAN? [closed]
Why can’t I spool the explain plan to a txt file? SPOOL EXPLAIN_PLAN_1.txt set heading off set echo off set pages 999 set long 90000 select plan_table_output from...
View ArticleHelp interpreting Oracle RMAN results
I am extremely new to Oracle and had to take a backup on an 11g database that is in NOARCHIVELOG mode. Below is the output. It claims that the backup failed but I have a file of appropriate size where...
View Articlehow do I change regexp_substr(to_char(bar), '^.*?$', 1, 1, 'm') to only read...
how do I change the query below so it only reads and displays 132 characters each line with w(id, line#, line, rest) as ( select id, 1, regexp_substr(to_char(bar), '^.*?$', 1, 1, 'm'),...
View Article