DBUA rerun error
I keep getting the follow error trying to upgrade my DB.
DBUA thinks this is a Rerun operation and is trying to connect to the database with oracle home /oracle/m11g/db11g. If you believe this is not a Rerun operation, remove the below file and invoke DBUA again. /oracle/m11g/cfgtoollogs/dbua/logs/Welcome_oem11g.txt
Where is this file ? I cannot find it anywhere..
Hi,
Then why the location for you is showing "/oracle/m11g/cfgtoollogs/dbua/logs/" instead of "/oracle/m11g/db11g/cfgtoollogs/dbua/logs/" ?
Or did you meant above is the typo?
Anyways what is the current state of the database that needed to be upgraded? And what is the entire error message you are getting.
1) Is your database started with startup upgrade?
If no then please do so and re run dbua
and if yes then
you can do below cleanup.
a. In the $ORACLE_ HOME/cfgtoollogs/dbua/<$ORACLE_SID> of database being upgraded,
there are multiple upgrade directories (i.e. upgrade, upgrade0, ...., upgradeN)
b. Go to the directory $ORACLE_HOME/cfgtoollogs/dbua/<$ORACLE_SID>
c. Move all the upgrade* directory to some other location.
d. Re-run the DBUA
Regards
Anurag Tibrewal
Similar Messages
-
10.2.0.3 DBUA Error
I downloaded pat 5337014 in order to upgrade my 10.2.0.2 databases to 10.2.0.3
1. Originally installed Oracle 10.2.0.1 on RHEL 4 32-Bit without a database
2. Applied the 10.2.0.2 patch then created a DB
3. Successfully installed the 10.2.0.3 patch
4. Received an error when attempting to upgrade the DB using the DBUA assistant
Error: DBUA thinks this is a Rerun operation and is trying to connect to the database with oracle home /app/product/10.2.0/db_1. If you believe this is not a Rerun operation, remove the below file and invoke DBUA again.
/app/product/10.2.0/db_1/cfgtoollogs/dbua/logs/Welcome_orcl.txt
1. This is not a Rerun and this file does not exist
2. To make sure, I moved the /app/product/10.2.0/db_1/cfgtoollogs/dbua directory and tried it again, but received the same error.
Any suggestions? Has anyone else experienced this issue?Is it your intent to run a 10.2.0.4 database on a lower version of ASM?
If not patch the ASM home and first. -
Problem during Upgrade 10.2.0.4
Hi Gurus !!!
During upgrade from 9.2 to 10.2 we have install 10.2.0.4 patches and now we are ready to call dbua (upgrade assistant).
When we call dbua an error occurs :
./dbua
Error message
Failed to load Main Class: oracle.sysman.assistants.dbma.Dbma
We've check enviroments variables and all are Ok.
Any ideas ?
Thanks in advance.Hi Xavier Canals Asin,
You also need to set the JAVA_HOME environment variable.
For unix after login to the oraSID user
setenv JAVA_HOME /opt/java1.4(java location may differ check in ur system)
then check the version of the java with command java -version
if still you are getting the error
check the metalink
Exception in thread "main" java.lang.NoClassDefFoundError [ID 359067.1]
If still it is not working please reply back to me.
Thanks,
Chaitanya -
Dbua error wile upgrade from 9.5.0.5 to 10.2.0.4
I am upgrading from 9.2.0.5 to 10.2.0.4
i earlier tried to upgrade from 9.2.0.5 to 10.2.0.3, however it failed because of not applying patch-
i then cloned the instance and installed 10g software,companion products,10.2.0.4. patchset. however when u run dbua it gives a weird error->
ora 1507---database not mounted
dbua thinks this is rerun and is trying to connect to the database with orcle home"/u08/fadevdb/10g". If you beleive this is not a rerun, remove below file and rerun DBUA again
/u08/fadevdb/10g/cfgtoollogs/dbua/logs/Welcome_FADEV.tct"
However /u08/fadevdb/10g/cfgtoollogs/dbua/logs/Welcome_FADEV.txt" files does not exist
I checked the alert log
Additional information: 4087
Fri Dec 19 23:00:24 2008
ORA-205 signalled during: ALTER DATABASE MOUNT...
Fri Dec 19 23:43:40 2008
Beginning log switch checkpoint up to RBA http://0x2e.2.10, SCN: 0x0000.88b18ab0
Thread 1 advanced to log sequence 46
Current log# 1 seq# 46 mem# 0: /u04/fadevdata/log01a.dbf
Current log# 1 seq# 46 mem# 1: /u06/fadevdata/log1b.dbf
Sat Dec 20 00:04:22 2008
Completed checkpoint up to RBA http://0x2e.2.10, SCN: 0x0000.88b18ab0
^C$ tail -100 alert_FADEV.log
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as /u08/fadevdb/10g/dbs/arch
Autotune of undo retention is turned on.
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.4.0.
System parameters with non-default values:
tracefiles_public = TRUE
processes = 200
sessions = 400
timed_statistics = TRUE
shared_pool_size = 301989888
large_pool_size = 8388608
java_pool_size = 54525952
streams_pool_size = 50331648
shared_pool_reserved_size= 30000000
sharedpool_reserved_min_alloc= 4100
nls_language = american
nls_territory = america
nls_sort = binary
nls_date_format = DD-MON-RR
nls_numeric_characters = .,
nls_comp = binary
nls_length_semantics = BYTE
control_files = /u04/fadevdata/cntrl01.dbf, /u06/fadevdata/cntrl02.dbf, /u03/fadevdata/cntrl03.dbf
db_block_checksum = TRUE
db_block_size = 8192
db_cache_size = 163577856
compatible = 9.2.0
log_buffer = 14282752
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
db_files = 512
db_file_multiblock_read_count= 8
log_checkpoints_to_alert = TRUE
dml_locks = 10000
undo_management = AUTO
undo_tablespace = APPS_UNDOTS1
undo_retention = 1800
db_block_checking = FALSE
O7_DICTIONARY_ACCESSIBILITY= FALSE
session_cached_cursors = 200
utl_file_dir = /usr/tmp, /usr/tmp, /u02/fadevdb/9.2.0/appsutil/outbound/FADEV_fadevdb, /usr/tmp
job_queue_processes = 2
systemtrig_enabled = TRUE
cursor_sharing = EXACT
parallel_min_servers = 0
parallel_max_servers = 8
background_dump_dest = /u02/fadevdb/9.2.0/admin/FADEV_fadevdb/bdump
user_dump_dest = /u02/fadevdb/9.2.0/admin/FADEV_fadevdb/udump
max_dump_file_size = 20480
core_dump_dest = /u02/fadevdb/9.2.0/admin/FADEV_fadevdb/cdump
session_max_open_files = 20
optimizer_features_enable= 9.2.0
db_name = FADEV
open_cursors = 600
ifile = /u02/fadevdb/9.2.0/dbs/FADEV_fadevdb_ifile.ora
sortelimination_cost_ratio= 5
btree_bitmap_plans = FALSE
fastfull_scan_enabled = FALSE
query_rewrite_enabled = true
indexjoin_enabled = FALSE
sqlexecprogression_cost= 2147483647
likewith_bind_as_equality= TRUE
pga_aggregate_target = 1073741824
workarea_size_policy = AUTO
aq_tm_processes = 1
olap_page_pool_size = 4194304
PSP0 started with pid=3, OS id=28588
MMAN started with pid=4, OS id=28590
PMON started with pid=2, OS id=28586
DBW0 started with pid=5, OS id=28592
LGWR started with pid=6, OS id=28594
CKPT started with pid=7, OS id=28596
SMON started with pid=8, OS id=28598
RECO started with pid=9, OS id=28600
CJQ0 started with pid=10, OS id=28602
MMON started with pid=11, OS id=28604
MMNL started with pid=12, OS id=28606
Fri Dec 19 23:00:21 2008
ALTER DATABASE MOUNT
Fri Dec 19 23:00:21 2008
ORA-00202: control file: '/u04/fadevdata/cntrl01.dbf'
ORA-27086: unable to lock file - already in use
SVR4 Error: 11: Resource temporarily unavailable
Additional information: 8
Additional information: 4087
Fri Dec 19 23:00:24 2008
ORA-205 signalled during: ALTER DATABASE MOUNT...
Fri Dec 19 23:43:40 2008
Beginning log switch checkpoint up to RBA http://0x2e.2.10, SCN: 0x0000.88b18ab0
Thread 1 advanced to log sequence 46
Current log# 1 seq# 46 mem# 0: /u04/fadevdata/log01a.dbf
Current log# 1 seq# 46 mem# 1: /u06/fadevdata/log1b.dbf
Sat Dec 20 00:04:22 2008
Completed checkpoint up to RBA http://0x2e.2.10, SCN: 0x0000.88b18ab0
I then found that ctr101.dbf had permissions of "rw-r-r". I gave 777 permission.aborted dbua and again started dbua. However it still gives the same problem.
If you note the alert log...then 10g is trying to start while 9i is already running.i then shutdown and started 9i again and then started dbua...however it again gives the same error.
How do i resolve it?Hi,
I would quickly identify some of the errors that I'm seeing in the log:
ORA-01034: ORACLE not available
This is probably occuring due to invalid entries in /etc/oratab and /var/opt/oracle/oratab, where ORACLE_HOME and ORACLE_SID are not properly defined. This could also be due to invalid entries within the listener file. Further to this, you may try to read through the following Metalink Note to resolve this issue:
https://metalink.oracle.com/metalink/plsql/f?p=130:14:2840960078839325001::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,302510.1,1,1,1,helvetica
A similar issue is being discussed here ORA-27086: unable to lock file over NFS -- but it's NOT Netapp!
SVR4 Error: 11: Resource temporarily unavailable
This is probably over-writing some already existing/production control files. Try pointing CONTROL_FILES parameter within init.ora to point to a new location. Once this is done you must now change the location of your datafiles, and finally change the location of your redo log files.
ORA-205 signalled during: ALTER DATABASE MOUNT
This again is falling in succession to the errors being popped up against the control files. Try to start the database without mounting it and check for the control files in v$parameter2.
Lastly, you may also want to check if the database is starting from the spfile instead of the pfile. If it is, alter it to start from the pfile.
I hope this helps.
Regards,
Naveed. -
11.1.0.6.0 - 11.1.0.7 dbua error while upgrading
hello all i'm attempting to upgrade 11.1.0.6.0 to 11.1.0.7 and once in dbua i'm at upgrade process 85%, and i'm receiving this error:
database upgrade assistant:
ORA-04043: Object XDB_DATASTORE_PROC does not exist , ignore | Abort
i'm not too sure what i should do at this point, any help is appreciated
this is a linux 32bit machine/dbWelcome to the forums !
Pl see MOS Doc 360907.1 (catupgrd.sql gives error on XDB_DATASTORE_PROC ORA-4043)
HTH
Srini -
Error in DBUA while upgrading oracle 9.2 - 10.2 with sistem copy
Hi experts!
we are in a critical upgrade project, and faced the following
error while performing a system copy/upgrade of oracle version
from 9.2 to 10.2 (windows 2000 32bit to win 2003 64bits) acording to the procedure indicated in
sapnote: Note 932722 - Upgrade to Oracle 10.2 during a database copy
we checked all the prerequisites, followed all the steps with
sucess, until the part where DBUA was invocated.
in that step the following java exception was launched:
output from the remotedbua.pl script atached in the note 932722:
Sun Oct 11 04:53:10 2009 - verifying file locations.
Instance created.
Sun Oct 11 04:53:28 2009 - new TIO service created.
Sun Oct 11 04:53:38 2009 - database started.
Sun Oct 11 04:53:38 2009 - starting database upgrade. AQUI
J:/oracle/MAE/102/assistants/dbua/jlib/dbma.jar,
J:/oracle/MAE/102/assistants/dbua/jlib/dbma.jar.0
J:/932722/Upgrade10g64bit_v3/dbma.jar,
J:/oracle/MAE/102/assistants/dbua/jlib/dbma.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
oracle/sysman/assistants/util/em/ManagementOptionsPage
at oracle.sysman.assistants.dbma.ui.UICompManager.<init>
(UICompManager.java:153)
at oracle.sysman.assistants.dbma.Dbma.getCompManager
(Dbma.java:154)
at oracle.sysman.assistants.dbma.Dbma.execute(Dbma.java:98)
at oracle.sysman.assistants.dbma.Dbma.statusMain(Dbma.java:199)
at oracle.sysman.assistants.dbma.Dbma.main(Dbma.java:180)
Sun Oct 11 04:53:39 2009 - Error: database upgrade failed.
dbua, while loading, cant find all the necessary classes, in
the dbma.jar archive. that is suplied in the note.
we tried to run dbua in -verbose mode and it seems that
the problem is not in java classpath, since the dbua.bat
loads sucessfully other classes present in dbma.jar, but not
all, giving the exception that indicates that not all of them
are presente in the dbma.jar file, suplied int the note!
[Loaded oracle.sysman.assistants.dbma.ui.SPFilePage from
file:/J:/oracle/MAE
[Loaded oracle.sysman.assistants.dbma.ui.BackupPage from
file:/J:/oracle/MAE
Exception in thread "main" java.lang.NoClassDefFoundError:
oracle/sysman/***
at oracle.sysman.assistants.dbma.ui.UICompManager.<init>
(UICompManag
at oracle.sysman.assistants.dbma.Dbma.getCompManager
(Dbma.java:154)
at oracle.sysman.assistants.dbma.Dbma.execute(Dbma.java:98)
at oracle.sysman.assistants.dbma.Dbma.statusMain(Dbma.java:199)
at oracle.sysman.assistants.dbma.Dbma.main(Dbma.java:180)
[Loaded java.lang.Shutdown from J:\oracle\MAE\102\jdk\jre\lib\rt.jar]
[Loaded java.lang.Shutdown$Lock from J:\oracle\MAE\102
\jdk\jre\lib\rt.jar]
we also tried to execute the dbua.bat, and the same error insues.
we cant pass to the next upgrade step, until this critical echo is
resolved!
Please Advise!! Best Regards RicardoHi Mark, first of all thanks for the reply.
after talking to sap support, we came to the conclusion that the problem was on the dbma.jar file
atached to the note 932722.
the file is missing java classes, so the dbua doenst work, because, the remotedua.pl script,
copies the file dbma.jar of the note, to the original one in the oracle instalation.
it renames the original to ".0", so if you run the script two times, the original is lost.
the problem was solved by requesting another dbma.jar file from sap.
sap probably will correct note 932722, in order to update the attached dbma.jar file to a good one.
Best Regards,
Ricardo Caramona -
DBUA errors out after collecting server information
Hi,
We are in the process of upgrading Oracle Database from 9i to 11g on AIX 6.1. After installing the Oracle Software 11g (11.2.0.1) we try to run the DBUA but after showing the screen collecting server information a blank page appears (with no error code) after which the DBUA stops.
Please any hints or any comments.
Thanks.There are a few oracle notes which may help :
DBUA Fails With a Screen Showing 'Null' [ID 1285052.1]
Complete Checklist for Manual Upgrades to 11gR2 [ID 837570.1]
11.2.0.1 Catupgrd.sql Hangs While Running Procedure POPULATE_DBID_AUDIT [ID 1062993.1]
Best Regards
mseberg
Edited by: mseberg on Aug 10, 2011 8:02 AM -
BI Apps ODI Load Plan Execution Error and Question on Rerun
I am following the technetwork Cookbook: Installing and Configuring Oracle BI Applications 11.1.1.7.1 to install and configure my first BIApps with ODI. Smooth until I execute the Load Plan.
Following errors were found on first attempt of execution. Without doing any change, I re-executed the load plan, error again but this time the message is difference (2nd attempt)
Question:
- How shall I start to diagnostic the ODI error?
- Apparently there are something left in the failure execution, how I can clean it up for reruning the Load Plan?
Many thanks.
ODI errors on first execution
ODI-1519: Serial step "Start Load Plan (InternalID:1500)" failed because child step "Global Variable Refresh (InternalID:2500)" is in error.
ODI-1519: Serial step "Global Variable Refresh (InternalID:2500)" failed because child step "1 Domain (InternalID:5500)" is in error.
ODI-1519: Serial step "1 Domain (InternalID:5500)" failed because child step "2 Domain SDE (InternalID:35500)" is in error.
ODI-1519: Serial step "2 Domain SDE (InternalID:35500)" failed because child step "Serial (InternalID:36500)" is in error.
ODI-1519: Serial step "Serial (InternalID:36500)" failed because child step "3 SDE General Domain (InternalID:54500)" is in error.
ODI-1519: Serial step "3 SDE General Domain (InternalID:54500)" failed because child step "Load Target Table (InternalID:55500)" is in error.
ODI-1519: Serial step "Load Target Table (InternalID:55500)" failed because child step "EBS_12_1_1 - DSN 1000 (InternalID:56500)" is in error.
ODI-1519: Serial step "EBS_12_1_1 - DSN 1000 (InternalID:56500)" failed because child step "DOMAIN (InternalID:57500)" is in error.
ODI-1519: Serial step "DOMAIN (InternalID:57500)" failed because child step "Parallel (InternalID:58500)" is in error.
ODI-1518: Parallel step "Parallel (InternalID:58500)" failed; 5 child step(s) in error, which is more than the maximum number of allowed errors (0) defined for the parallel step. Failed child steps: COMMON (InternalID:59500), HUMAN_RES (InternalID:90500), FINANCIALS (InternalID:95500), SUPP_CHAIN (InternalID:122500), PROJECTS (InternalID:98500)
ODI-1518: Parallel step "COMMON (InternalID:59500)" failed; 11 child step(s) in error, which is more than the maximum number of allowed errors (0) defined for the parallel step. Failed child steps: SDE_ORA_DOMAINGENERAL_PRODUCT_CLASS (InternalID:69500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS PAY_GROUP (InternalID:88500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS MARITAL_STATUS (InternalID:85500), SDE_ORA_DOMAINGENERAL_PRODUCT_MASTERORG (InternalID:73500), SDE_ORA_DOMAINGENERAL_PRODUCT_CATEGORYNAME (InternalID:67500), SDE_ORA_DOMAINGENERAL_STATE (InternalID:61500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS CUSTOMER_CATEGORY (InternalID:83500), PRODCAT (InternalID:75500), SDE_ORA_DOMAINGENERAL_FLEXFIELD (InternalID:89500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS ORGANIZATION_SIZE (InternalID:82500), UOM - Serial (InternalID:78500)
ODI-1217: Session SDE_ORAR1211_ADAPTOR_SDE_ORA_DOMAINGENERAL_PRODUCT_CLASS (38500) fails with return code 8000.
ODI-1226: Step Run SDE_ORA_DomainGeneral_Product_Class fails after 1 attempt(s).
ODI-1240: Flow Run SDE_ORA_DomainGeneral_Product_Class fails while performing a Integration operation. This flow loads target table W_DOMAIN_MEMBER_GS.
ODI-1228: Task SDE_ORA_DomainGeneral_Product_Class (Integration) fails on the target ORACLE connection BIAPPS_DW.
Caused By: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12516, TNS:listener could not find available handler with matching protocol stack...
ODI errors on second execution
ODI-1519: Serial step "Start Load Plan (InternalID:1500)" failed because child step "Global Variable Refresh (InternalID:2500)" is in error.
ODI-1519: Serial step "Global Variable Refresh (InternalID:2500)" failed because child step "1 Domain (InternalID:5500)" is in error.
ODI-1519: Serial step "1 Domain (InternalID:5500)" failed because child step "2 Domain SDE (InternalID:35500)" is in error.
ODI-1519: Serial step "2 Domain SDE (InternalID:35500)" failed because child step "Serial (InternalID:36500)" is in error.
ODI-1519: Serial step "Serial (InternalID:36500)" failed because child step "3 SDE General Flexfield (InternalID:37500)" is in error.
ODI-1519: Serial step "3 SDE General Flexfield (InternalID:37500)" failed because child step "Finalize Flexfield (InternalID:50500)" is in error.
ODI-1519: Serial step "Finalize Flexfield (InternalID:50500)" failed because child step "EXEC_TABLE_MAINT_PROC (InternalID:51500)" is in error.
ODI-1217: Session EXEC_TABLE_MAINT_PROC (107500) fails with return code 20000.
ODI-1226: Step TABLE_MAINT_PROC fails after 1 attempt(s).
ODI-1232: Procedure TABLE_MAINT_PROC execution fails.
ODI-1228: Task TABLE_MAINT_PROC (Procedure) fails on the target ORACLE connection BIAPPS_DW.
Caused By: java.sql.SQLException: ORA-20000: Error creating Index/Constraint : W_FLEX_SQL_G_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys foundHi,
The first error happened is
ORA-12516, TNS:listener could not find available handler with matching protocol stack...
The above is due to the listener been disconnected while the LP is executing. This can be solved by restarting the load.
The second error happened is
ORA-20000: Error creating Index/Constraint : W_FLEX_SQL_G_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
The above is due to the duplicate records found in the table w_flex_sql_g. You can solve this by deleting the duplicated records in that table like referred in the below link
OBIEE, Endeca and ODI: BIApps and ODI 11.1.1.7.1 Full Load
Regards,
Saro -
DBUA is throwing below error in step 1
Hi,
I am trying to upgrade 9.2.0.7 to 10.2.0.
DBUA is throwing below error in step 1:
There is an error in creating the following process: C:\oracle\ora92\bin\sqlplus -s/nolog
The error is: createprocess:C:\oracle\ora92\bin\sqlplus -s/nolog
error:193
I can login as sysdba ,using C:\oracle\ora92\bin\sqlplu for both 9i as well as 10g home
i did set oracle_home to C:\oracle\ora92, using command prompt.
Please suggest what needs to be done. Thanks
RonWhat you have written does not compute.
How many Oracle homes do you have?
If more than 1 ... explain how you can log into 9i and 10g using a single home?
Please explain in detail what document you are following (post a link) and what steps you have taken based on the document.
And why are you upgrading to software that will begin desupport in four weeks? If you are going to put in the effort why not at least get a system that will be fully supported when you are done? -
Every single time I power up photoshop CC get an error. says " the monitor profile "acer S201HL" appears to be defective. Please rerun your monitor calibration software. How do I fix this?
Your factory-supplied monitor profile, associated with your monitor by the operating system, is bad. It's more common than you'd think.
To avert the error:
Open the Color Management panel of your Windows operating system. In the Devices tab, if it is not already listed [ Add... ] the sRGB IEC61966-2.1 profile and [ Set as default Profile ].
After doing the above, log out of Windows and back in again, just to ensure everything's updated.
Note that the above assumes your monitor is more or less displaying color in the sRGB color space (sRGB is short for sRGB IEC61966-2.1). For many monitors this isn't a terribly wrong assumption.
If you want to ensure you have the most accurate color, consider buying a calibration and profiling device, which (with its associated software) can set your calibration and generate custom color profiles by doing actual measurements from your monitor. You'll want to take some time to get your mind around how color-management works, and that is not a trivial task. It's certainly well beyond what can be taught in a forum post by post.
Good luck.
-Noel -
Rerunning script (DML and DDL) without ora-00001 and ora-00955 errors
What is the best way to write a DML and DDL script so that it can be run multiple times without these ORA errors:
ORA-00955: name is already used by an existing object
ORA-00001: unique constraint (JILL.SYS_C00160247) violated
I have just joined a product development company using SQL Server as there primary database. They have just completed a port to Oracle.
Their product release upgrades (given to clients) include sql scripts with database changes (structure and data). They require that the client be able to rerun the scripts more than once with no errors. In SQL Server, the accomplish it this way.
For DDL:
if not exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[MyTab]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
Begin
CREATE TABLE [dbo].[MyTab] (
[ID]int IDENTITY(1,1),
[InvID] uniqueidentifier not null
For DML:
IF NOT EXISTS (SELECT 1 FROM [dbo].[mytab] WHERE [Name] = 'Smith' and [ID] = 3)
BEGIN
INSERT INTO [dbo].[mytab]
([ID] ,[Name]
VALUES (3,'Smith')
END
I am tasked with duplicating this logic on the Oracle side. The only way I can think of so far is using plsql and checking for existence before every insert and create statement. The other options I thought of cannot be used in this case
- "whenever sqlerror continue" - gives the same response for all errors. True errors should stop the code, so this is too risky.
- "log errors into ... reject limit unlimited" on the insert - I thought this was my best solution until I found out that it doesn't support lobs.
Do you know of any more elegant (and more efficient) solution other than plsql cursors to check for existence before running each insert/create?
Any suggestions would be greatly appreciated.select table_name from user_tables will give you the table exist or not.
all_tables/dba_tables
http://download.oracle.com/docs/cd/B14117_01/server.101/b10755/statviews_1190.htm#i1592091 -
DBUA Error - 8.1.7.4 10.2.0.3
I am running DBAU to upgrade a DB from 8.1.7.4 to 10.2.0.3. I am getting a strange error message. Right after DBUA asks me which database to upgrade, it then does it gathering of the DB information. I get a dialog box that comes up with the red bell, and the number 0 (that's a zero), with a "OK" button to click. There is no other error message of any kind, and nothing of value in the dbua logfiles. When I click the OK button, it goes back to the selection DB to upgrade screen. Any ideas? I have not had this happen on my four previous DB upgrades.
Hello,
you have a problem with one of your parameters in your spfile or pfile.
It cant be parsed from the dbua-parser. You can find out which
parameter is wrong by looking in the trace file (the last parameter shown is ok, you have a problem with the parameter following this one -> compare trace file with your spfile). There is a Metalink Note for this: 376270.1
Best regards,
Alexander Bertram -
Oracle Upgrade (DBUA) error
Hi
Which execuring the command "dbua" for upgrade, I get the following error
Exception in thread "main" java.security.AccessControlException: access denied (java.lang.RuntimePermission setIO)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.checkIO(Unknown Source)
at java.lang.System.setErr(Unknown Source)
at oracle.ops.mgmt.trace.Trace.enableLogging(Trace.java:751)
at oracle.ops.mgmt.trace.Trace.enableLogging(Trace.java:720)
at oracle.sysman.assistants.dbma.backend.CompManager.setLoggings(CompManager.java:3390)
at oracle.sysman.assistants.dbma.backend.CompManager.initialize(CompManager.java:297)
at oracle.sysman.assistants.dbma.ui.UICompManager.initialize(UICompManager.java:141)
at oracle.sysman.assistants.dbma.Dbma.execute(Dbma.java:90)
at oracle.sysman.assistants.dbma.Dbma.statusMain(Dbma.java:177)
at oracle.sysman.assistants.dbma.Dbma.main(Dbma.java:158)
let me how to get rid of this problem..
Thanks in advance !
Regards
MadhuHi Madhusudhan,
Did you run dbua with ora<sid> user? It is clearly a user rights issue.
Regards,
János -
Hi Friends,
I had installed Oracle 9.2.0.1(software alone) on Sun solaris box and then i installed the patchset 9.2.0.8 on the same Oracle 9i Home.It's installed.
But when i try to run dbca to cretae a database from $ORACLE_HOME/bin it throws the error:
java.lang.NoClassDefFoundError
i had set the PATH,ORACLE_SID,ORACLE_HOME,LD_LIBRARY_PATH but still getting the error.
Please suggest a fix.
Regrads,
ArunDo you have JAVA_HOME set in your environment?
What's the result of
env
Make sure DBCA is calling the java under $ORACLE_HOME not from other installation. -
I received an error during an EBS database upgrade from 9.2.0.5 to 10.2 using DBUA. The error was due to my UNDO tablespace size being too small. According to the Database Upgrade Guide, if you receive this error during upgrading your should:
1. increase the size of the undo tablespace
2. "shutdown abort" the database
3. "startup upgrade" the database
4. restart the dbua
When restarting the DBUA I received the error message: ORA-903 Invalid Identifier PVR_VERSION.
So, instead I simply logged into sqlplus as sysdba and started the catupgrd.sql script. Will this work? Will I be able to continue my upgrade using the manual procedures even though I started it using dbua?
Thanksplz check step 11 and 12 of the db upgrade guid
11. Run utlu102s.sql to display the results of the upgrade:
SQL> @utlu102s.sql
The Post-upgrade Status Tool displays the status of the database components in
the upgraded database and the time required to complete each component
upgrade. The Upgrade Status Tool displays output similar to the following:
Oracle Database 10.2 Upgrade Status Utility 04-20-2005 05:18:40
Component Status Version HH:MM:SS
Oracle Database Server VALID 10.2.0.1.0 00:11:37
JServer JAVA Virtual Machine VALID 10.2.0.1.0 00:02:47
Oracle XDK VALID 10.2.0.1.0 00:02:15
Oracle Database Java Packages VALID 10.2.0.1.0 00:00:48
Oracle Text VALID 10.2.0.1.0 00:00:28
Oracle XML Database VALID 10.2.0.1.0 00:01:27
Oracle Workspace Manager VALID 10.2.0.1.0 00:00:35
Oracle Data Mining VALID 10.2.0.1.0 00:15:56
Messaging Gateway VALID 10.2.0.1.0 00:00:11
OLAP Analytic Workspace VALID 10.2.0.1.0 00:00:28
OLAP Catalog VALID 10.2.0.1.0 00:00:59
Oracle OLAP API VALID 10.2.0.1.0 00:00:53
Oracle interMedia VALID 10.2.0.1.0 00:08:03
Spatial VALID 10.2.0.1.0 00:05:37
Oracle Ultra Search VALID 10.2.0.1.0 00:00:46
Oracle Label Security VALID 10.2.0.1.0 00:00:14
Oracle Expression Filter VALID 10.2.0.1.0 00:00:16
Oracle Enterprise Manager VALID 10.2.0.1.0 00:00:58
Total Upgrade Time: 00:56:09
12. Turn off the spooling of script results to the log file:
SQL> SPOOL OFF
Then, check the spool file and verify that the packages and procedures compiled
successfully. You named the spool file in Step 9; the suggested name was
upgrade.log. Correct any problems you find in this file (see "Troubleshoot the
Upgrade" on page 3-22) and rerun the catupgrd.sql script, if necessary. You can
rerun any of the scripts described in this chapter as many times as necessary. (If
you have JAVAVM in your database, but you did not install the companion Oracle
Database 10g Products, you will most likely receive error message ORA-29558.)
fadi hasweh
http://oracle-magic.blogspot.com
Maybe you are looking for
-
Firefox delays in checking <input type="checkbox> after many attempts its finally ticked. We need to zoom the page to tick the checkbox.
-
Can't connect to Windows NT with 10.4.3
I have a Windows NT Server that I use to be able to connect to with 10.3. I upgraded to 10.4 and now I can't connect to my NT anymore. I used an IP to connect to it and now its telling me that "This file server uses an incompatible version of the AFP
-
Adobe Acrobat 9 Pro Not Installing
When I click on the shortcut to Acrobat 9 Pro, the program says it is preparing to install. This program was installed with CS4. At any rate, if I let it continue to install, the install fails with a message that it cannot access C:\Config.msi\48b6
-
"Artists by Album" column display for iPod (in iTunes 7) doesn't work
I'm a big fan of the "Artists by Album" column option in iTunes 7, as it helps me to keep my single-artist albums and compilation albums well-sorted and separated from each other. Love it lots; it's my favorite way to view my rather large music colle
-
Help! PC Suite with Vista Business ...
I'm user of N95 8GB. Was installing PC Suite on my XP and everything went alright. Just upgrade to Vista Business and the PC Suite can't work. PC Connectivity Software & Nokia Software Updater can't install (keep failing to install). And when I start