INTERNAL ERROR :Failed assertion [PGE code :90105] - oracle

While trying to compile sample code with the Pro*C compiler I am getting:
c:\oracle\product\11.2.0\dbhome_1\BIN>proc iname=C:\Users\Selvaganapathy\Desktop
\pro-c\code\sample.pc
Pro*C/C++: Release 11.2.0.1.0 - Production on Mon Aug 6 01:00:59 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: C:\oracle\product\11.2.0\dbhome_1\preco
mp\admin\pcscfg.cfg
INTERNAL ERROR: Failed assertion [PGE Code=90105]
Please help to set up the compiler.

Check if you have the temporary file
C:\Users\Selvaganapathy\Desktop\pro-c\code\sample.c
If it exists, retry after deleting this file or provide write permission to it.

Related

Oracle 19.5 giving ORA-39358 for 19.0 dump

I am importing 19.0 dump (exported on Oracle 19.0c) on Oracle 19.5c oracle. But it give strange message as below,
Import: Release 19.0.0.0.0 - Production on Wed Mar 23 05:46:48 2022
Version 19.5.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
ORA-39002: invalid operation
ORA-39358: Export dump file version 19.0.0.0.0 not compatible with target version 12.2.0.0.0
Can anyone explain.
Here is the compatible parameter I have:
\`SQL\> SELECT name, value FROM v$parameter
WHERE name = 'compatible'; 2
NAME
-
VALUE
-
compatible
12\.2.0
\`

Not able to use tkprof utility

Hi I have below trc file. When i am using tkprof it is giving error.
-bash-4.1$ ls -ltr ac1dv224_ora_7223_1509935.trc
-rw-r----- 1 oracle dba 4388454 Dec 4 03:14 ac1dv224_ora_7223_1509935.trc
-bash-4.1$
-bash-4.1$ tkprof ac1dv224_ora_7223_1509935.trc ac1dv224_ora_7223_1509935.out
TKPROF: Release 10.1.0.5.0 - Production on Fri Dec 4 03:14:49 2020
Copyright (c) 1982, 2005, Oracle. All rights reserved.
could not open output file ac1dv224_ora_7223_1509935.out
Could you please help me to do that. I am new in database.
I also tried below command, still getting same error.
-bash-4.1$ tkprof ac1dv224_ora_6811.trc translated.txt explain=apps/apps table=sys.plan_table sys=no waits=yes

write command log to file in window

I want to write log of following command to file in window:
C:\Users\The Linh>IMP system/Thelinh05#orcl FILE= D:\source\rabbit\db_dmp\billus
er.dmp FULL=Y IGNORE=Y;
(This command use to import data in to oracle).
I try to use this command:
C:\Users\The Linh>IMP system/Thelinh05#orcl FILE= D:\source\rabbit\db_dmp\billus
er.dmp FULL=Y IGNORE=Y;>log.txt
But it not write log to file. The output in command line is:
Import: Release 11.2.0.1.0 - Production on Thu Jan 14 16:32:47 2016
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
IMP-00058: ORACLE error 1017 encountered ORA-01017: invalid
username/password; logon deniedUsername:
I've found solution for this problem. use below command:
IMP system/Thelinh05#orcl FILE= D:\source\rabbit\db_dmp\billuser.dmp
FULL=Y IGNORE=Y logfile=log.txt

How to check Oracle patches are installed?

How do I check that all services and patches are installed in Oracle?
I have an Oracle 10.2.0.2.0 db version and want to install patches. Also I want to get a list with all services and patches.
Here is an article on how to check and or install new patches :
To find the OPatch tool setup your database enviroment variables and then issue this comand:
cd $ORACLE_HOME/OPatch
> pwd
/oracle/app/product/10.2.0/db_1/OPatch
To list all the patches applies to your database use the lsinventory option:
[oracle#DCG023 8828328]$ opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u00/product/11.2.0/dbhome_1
Central Inventory : /u00/oraInventory
from : /u00/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.1.0
Log file location : /u00/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-11-13_13-55-22PM_1.log
Lsinventory Output file location : /u00/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2013-11-13_13-55-22PM.txt
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.1.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch 8405205 : applied on Mon Aug 19 15:18:04 BRT 2013
Unique Patch ID: 11805160
Created on 23 Sep 2009, 02:41:32 hrs PST8PDT
Bugs fixed:
8405205
OPatch succeeded.
To list the patches using sql :
select * from registry$history;
I understand the original post is for Oracle 10 but this is for reference by anyone else who finds it via Google.
Under Oracle 12c, I found that that my registry$history is empty.
This works instead:
select * from registry$sqlpatch;
Maybe you need "sys." before:
select * from sys.registry$history;

SQL*Loader error ORA-00604 and ORA-02248

I've a Problem with Oracle's SQL*Loader.
SQL*Loader: Release 11.2.0.3.0 - Production on Tue Feb 11 14:32:00 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-128: unable to begin a session
ORA-00604: Fehler auf rekursiver SQL-Ebene 1
ORA-02248: Ungültige Option für ALTER SESSION
This Errormessage occurs in the Errorlog after execute sqlldr with the following control and data file:
sqlldr statement:
sqlldr userid=%PW%/%Name%#%DBname% control=ABGRENZUNG_control.dat log=loader.log
ABGRENZUG control file
load data
INFILE 'ABGRENZUNG.dat'
INTO TABLE ABGRENZUNG
APPEND
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(AVG_RESTSCHULD,DATUM,DISAGIO,GEBUEHR,NOMZINS,REF_KEY,RESTSCHULD,STEUER_TYP,TYP,ZINSBETRAG,ZINSTAGE)
ABGRENZUNG.dat:
,20040630,0,0,,7514,3091209.0914799999,"S","T",11147.31048,
,20040731,0,0,,7514,3105526.7633799999,"S","T",17645.6519,
,20040831,0,0,,7514,3119926.1653200001,"S","T",17727.38194,
,20040930,0,0,,7514,3134407.7638500002,"S","T",17809.57853,
,20041031,0,0,,7514,3148972.0281699998,"S","T",17892.24432,
,20041130,0,0,,7514,3163619.43016,"S","T",17975.38199,
,20041231,0,0,,7514,3178350.44441,"S","T",18058.99425,
,20050131,0,0,,7514,3193165.5482000001,"S","T",18143.08379,
,20050228,0,0,,7514,3208065.2215300002,"S","T",18227.65334,
,20050331,0,0,,7514,3223049.9471700001,"S","T",18312.70564,
,20050430,0,0,,7514,3238120.21062,"S","T",18398.24345,
,20050531,0,0,,7514,3253276.5001599998,"S","T",18484.26954,
,20050630,0,0,,7514,3268519.3068400002,"S","T",18570.78669,
,20050731,0,0,,7514,3283849.1245499998,"S","T",18657.79771,
,20050831,0,0,,7514,3299266.44997,"S","T",18745.30542,
,20050930,0,0,,7514,3314771.7826299998,"S","T",18833.31265,
,20051031,0,0,,7514,3330365.6248900001,"S","T",18921.82226,
,20051130,0,0,,7514,3346048.4819899998,"S","T",19010.83711,
,20051231,0,0,,7514,3361820.8620799999,"S","T",19100.36008,
,20060131,0,0,,7514,3377683.27617,"S","T",19190.39409,
,20060228,0,0,,7514,3393636.2382,"S","T",19280.94203,
,20060331,0,0,,7514,3409680.2650600001,"S","T",19372.00686,
,20060430,0,0,,7514,3425815.8765699998,"S","T",19463.59151,
,20060531,0,0,,7514,3442043.5955400001,"S","T",19555.69896,
,20060630,0,0,,7514,3458363.9477300001,"S","T",19648.33219,
before executing the sqlldr statement I set these options.
set nls_lang=AMERICAN_AMERICA.WE8MSWIN1252
set nls_date_format='YYYYMMDD'
It seems that the problem occurs because of the NLS parameters. There must be a conflict with the nls_session(or database)_parameters.

Resources