How to delete alogs fom Oracle downstream target
I try to automate deleting logs from Oracle Downstream target database, which are not needed for capture process anymore. The query: SELECT NAME , PURGEABLE from DBA_REGISTERED_ARCHIVED_LOG; returns,...
View ArticleTuning read-intensive queries – Oracle
Now this might be very vague but Im sure I can provide more info on them.. my query is that is it recommended to use tablespaces if different block size because I have a table in which number of reads...
View ArticleOracle XE silent config ignores response file…?
I’m trying to configure Oracle XE 11.2 (on Oracle Enterprise Linux 6.6) in “silent mode” via a response file. I’m using the response file provided in the package (Disk1/response/xe.rsp), replacing...
View ArticleExtract data from Oracle DBF files
I’m completely new to Oracle and I was provided with what appears to be an Oracle database backup (170 DBF files and 3 CTL files). I’d like to extract the information using SSIS or Pentaho’s Kettle but...
View ArticleReturn the lowest value
How do I go about getting the course number (CNO) of all the lowest enrolled by department? For example if math had coursenum 123 and the 0 enrolled, and anoher coursenum 555 with 6 enrolled, it would...
View ArticleCan I take backup of those tables which are created with NOLOGGING in Oracle?
Can I take backup of those tables with data which were created with NOLOGIING option in Oracle. Is it true that backup can not be taken for these tables and I can not restore my data if I have some...
View ArticleUnable to turn off automatic memory management (AMM)
i am running oracle 11.2.0.4 SE RAC on Red Hat linux 6, the database is using ASM for datafile management i have been experimenting with turning on AMM and set the following parameters alter system set...
View ArticleWhat changes need to be done in tnsname and listener files to access a...
I have a database installed on a machine and I have the Oracle client installed on another machine. How can I access a database from the Oracle client installed on different machine?
View ArticleSQL*Net message from client Inactive sessions delete
I am trying to kill a session using alter system kill session . Previously the same command used to return ora28 status. However, these days it stopped giving the status. When V$session table is...
View ArticleIF condition in connect command in SQL*Plus
I want to fire SQL queries only when the user is connected to SQL*Plus. In my case even if the connection is not there, the rest of the commands are running in my SQL script. if "connect...
View ArticleHow to tune a SQL query?
I have a question about SQL query tuning. How can rewrite that SQL query for better performance? Query: select * from ( select ( select max(rn) from ( select row_number() over (order by islemno) rn,...
View ArticleOracle SQL script – passing a parameter
I have an Oracle SQL script like this: delete FROM activ_princ where id in (select ap.id FROM activ_princ ap inner join sect e on e.id=ap.FK_ID_SECTIUNE_e inner join chest ch on...
View ArticleWhat is the easiest way to move data from Oracle to SQL Server?
One of our products supports both Oracle and SQL Server as database backend. We have a customer who wishes to switch from an Oracle backend to Microsoft SQL Server, which isn’t a typical transition for...
View ArticleUpdate rows in a table with an index column starting from 0 with consecutive...
I have a few tables in a Oracle db with some “rule”: The INDEX_COLUMN must start from 0 and must be consecutive numbers and the column NRCRT must start from 1 and also consecutive numbers. I’ve made a...
View ArticleHow can I group (by) two joined tables [closed]
How can I group (by) two joined tables (in an Oracle database) like this: cant: id CANT_VAL COD_VAL 18059 18.56 R12 18060 11 R10 18061 15 R11 col: FK_ID_COL_DMA CANT_VAL COD_VAL 18059 1134 R10 18059...
View ArticleOracle program “lsnrctl” is missing after the installation of Oracle SQL...
I recently downloaded Oracle SQL Developer and when making a new connection inorder to start my own DB I was unable to due to this error below: IO Error the Network Adapter could not establish the...
View ArticleSQL developer – procedure just for a session
Is it possible to create a bunch of procedures just for the SQL developer session, so when the session ends the procedures are deleted?
View ArticleOracle db – get rid of doubled rows
I have an Oracle database with a table like this: yr op v1 v2 v3 2014 op1 10 15 20 2014 op1 10 15 20 2014 op1 10 15 20 2015 op2 33 44 55 2015 op2 33 44 55 2015 op3 100 200 300 2015 op3 100 200 300 2015...
View ArticleOracle 11 rman db restore file corruption
First to mention that I came to the need of asking help after furious research I reattempts for about 3 weeks. I checked previous threads in Oracle community but nothing works for me. I am trying to...
View ArticleRight way to delete the archive – Oracle
So I have an Oracle database (standalone) running in RHEL and I have scheduled RMAN for backups on daily and weekly basis. Sometimes my file system (archive mount-point) becomes full because of high...
View Article