Drop Datafile and Reuse the Tablespace – Oracle
Oracle 12C is my database. I was moving the datafile from one directory to another directory by making the tablespace Offline. ALTER TABLESPACE TABLESPACE_NAME OFFLINE NORMAL; But accidently, while...
View ArticleWhat does this do: sys.dbms_logrep_imp.instantiate_schema
When running impdp .... sqlfile=some_file.sql I get a sql file containing this command sys.dbms_logrep_imp.instantiate_schema(...) what does this do? Google seems unable to find reference to its...
View ArticleOracle DATE column – How to convert to UTC
I have an oracle 10g table with a DATE column type. I need to compare it in a where clause to a value generated by a script that looks like this: TIMESTAMP '2016-05-12 08:00:00.258000 +00:00'. I cannot...
View Articlenot a single-group group function when trying to add two sum() function [on...
I have two tables: create table a ( index_ numeric(1), value_ numeric(2) ); create table b ( index_ numeric(1), value_ numeric(2) ); Now I want to get the number of these two tables sum,I tried :...
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 ArticleIs it a sign that oracle `TNSListener` has been started?
I am trying to do ETL from oracle to Hadoop using Sqoop. I have checked the IP and the ports. All ports are good. But I still get ERROR that shows “The Network Adapter could not establish the...
View ArticleSpace is removing at end of the line
While running the insert script in sql*plus, space is removing. Can you please help us is there any plus command available in Oracle to not remove space at end of the line. Ex: After the text...
View ArticleOracle 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