SQL*Plus default output format
I have noticed that using the same SQL*Plus client to connect to different Oracle database result in different outputs for the same SQL query. Database 1: C:Oracleinstantclient_10_2>sqlplus...
View ArticleIs it possible to use 'restore UNTIL SCN' with rman and Oracle 9i in...
I’m trying to do a hot backup with rman that I can copy to a USB drive so I can recover it on a new server. The backup was done two days ago and the restore database command was working on the same day...
View ArticleShould I use two databases or two schemas?
We are currently having one Oracle instance on RAC with one database created. A new requirement came to our database team to temporarily (1-2 months) host a new application that is independent of...
View ArticleMessage file not found when starting SQLPlus
I’ve installed Oracle XE 11.2 on Fedora 18 but have trouble starting SQLPlus. It quits with the following error: Error 6 initializing SQL*Plus SP2-0667: Message file sp1<lang>.msb not found...
View ArticleOracle DB Recovery
Before I start, I just want to mention that I am not a DBA, I am a programmer/developer who also happens to look after the database. So if I say something wrong, my apologies in advance. We recently...
View ArticleConnecting to Oracle with encrypted pwd
I am reading my userid , pwd from a file with 400 permissions to connect to the external oracle application. Now my requirement is that i should not use the plain text pwd present in the file . I...
View ArticleOracle 11G Startup failed after altering the number of system processes
When I alter the number of system processes to 100000 and restart the database, I get the error below: ORA-27154: post/wait create failed ORA-27300: OS system dependent operation:semids_per_proc failed...
View ArticleHow do DELETE / TRUNCATE affect table / tablespace?
I am piggybacking off of this question, but asking it from the Oracle perspective. Specifically, how does a DELETE/TRUNCATE affect the size of the table and/or tablespace?
View ArticleRecover encrypted Oracle database
A client fired their DBA. He used OWM to add a wallet to their Oracle database and secure a few necessary columns of tables that they need. I can see the walled using: orapki wallet display -wallet...
View ArticleOracle intermittent performance problem
I have some complex queries that are usually fast (< 1 sec), but occasionally slow (> 10 sec, even minutes). How do I track this down or identify what condition is causing it? One theory was...
View ArticleHelp with Oracle Pipelined function
I have a pivot where I have a contract with tank numbers separated by ; and I’ve been given this example to pivot them down into rows (which works): SELECT oks_c.contract_number, oks_l.line_id,...
View ArticleRecovering from the loss of datafile in NOARCHIVELOG mode?
How do you recover from the loss of datafile if the database is running in NOARCHIVELOG mode?
View ArticleRecovering a lost datafile with no backup available
How do you recover a lost datafile if: the database is running in archivelog mode there is no backup is available
View ArticleCan I update an Access table with an Oracle table?
I have an Access database with a table with a unique key and price field among other fields. I have been told I have access to an Oracle database with those prices in it and the linking Key. Can I run...
View ArticleCan we create a table in specific datafile – Oracle 11g R2?
I am buying a new server than has two HDs: 300 GB with 15000 rpm. 600 GB with 10000 rpm. I am thinking to allocate the datafiles in both hard disks. and put the less used tables in the data files that...
View ArticleSQL Server to Oracle export using Microsoft OLEDB Provider for Oracle
I am trying to Export Data from SQL Server to Oracle using the “Microsoft OLEDB Provider for Oracle”. I am using “Export Data…” option from Task menu. I get to connect to the source database (SQL...
View ArticleCreating and tuning a materialized view in oracle for use by Cognos BI
I am currently in the middle of a Cognos BI implementation and am having difficulty in tuning a view in order for SQL Server to select its contents for fulfilling the incremental load in a timely...
View ArticleConnecting to Oracle from SSIS using ODBC
I am using SSIS to pull data from Oracle DataSource. In the Connection when I chose the Oracle provider and gave the necessary inputs I got error saying "Oracle client and networking components were...
View ArticleWorkaround for using functions in restricted system
I have access to an environment where I can run SELECT statements but cannot call functions. I know what all the code is inside the functions. The functions are merely lookups (SELECTs and not INSERTs...
View ArticleMonitoring multiple Oracle databases on a single screen
We would like to monitor database activity of multiple Oracle databases on a single screen (10g and 11gR2), divided by the number of databases. Some tools are offered here: Tools to monitor Oracle...
View Article