EXCEPTION missinguser on dbms_defer_sys.execute_error (ORA-23362)
Hi
8.1.7.4 and Windows 2000
J run full import of replicated databse with errors in deftran.
J'd like to test the reexecution of transaction in the deferror queue:
It gives exception missinguser
BEGIN
DBMS_DEFER_SYS.EXECUTE_ERROR( '2.40.62007', 'DELTA.WORLD');
exception
when DBMS_DEFER_SYS.missinguser then dbms_output.put_line('missinguser');
end;
Note 67832.1 on metalink support explains that DBMS_DEFER_SYS.EXECUTE_ERROR:
Raises an exception if the original receiver is an invalid user.
What does it mean "invalid user" ?
How can J verify it ?
Regards
gosia
P.S.:
On production database ORA-23362 doesn't occur.
The answer could be found at http://www.orafaq.com/forum/t/66106/0/
From a previous run of the initialization scripts another user owned the job, that was adressed. The issue was resolved by changing the script in order to use the old userid (snapadmin instead of mvadmin).
Similar Messages
-
Could not create pool connection.The DBMS driver exception was:java.sql.SQLException:
ORA-01017: invalid username/password
Even though I could able to connect to Oracle database using correct userid,password
and HostString using OracleClient, I couldnt able to do with connectionpool. Here
is the error message..
<Jan 21, 2003 2:27:50 AM PST> <Notice> <WebLogicServer> <Starting WebLogic Admin
Server "examplesServer" for domain "examples">
Starting Loading jDriver/Oracle .....
---------- LOGIN ERROR CODE: 1017
---------- LOGIN ERROR CODE: 1017
<Jan 21, 2003 2:28:06 AM PST> <Error> <JDBC> <Cannot startup connection pool "or
aclePool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: ORA-01017: invalid username/password; logon denied - (Obj
ectel/********@ora8i)
at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:164)
at weblogic.jdbc.oci.Driver.connect(Driver.java:112)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:193)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:623)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy45.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy64.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:209)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:623)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy45.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy64.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
>
<Jan 21, 2003 2:28:14 AM PST> <Notice> <Management> <Application Poller started
for development server.>
<Jan 21, 2003 2:28:19 AM PST> <Notice> <WebLogicServer> <ListenThread listening
on port 7001>
<Jan 21, 2003 2:28:19 AM PST> <Notice> <WebLogicServer> <SSLListenThread listeni
ng on port 7002>
<Jan 21, 2003 2:28:20 AM PST> <Notice> <Management> <Starting discovery of Manag
ed Server... This feature is on by default, you may turn this off by passing -Dw
eblogic.management.discover=false>
<Jan 21, 2003 2:28:20 AM PST> <Notice> <WebLogicServer> <Started WebLogic Admin
Server "examplesServer" for domain "examples" running in Development Mode>URL=jdbc:weblogic:oracle:oracle8i(server)
Driver Classname=weblogic.jdbc.oci.Driver
AClname=weblogic.jdbc.connectionPool.oraclePool
intialcapacity=1
MaximumCapacity=10
Capacity Increment=2
Login Delay Seconds=1sec
Refresh Period=15 Minutes
Supports Local Transaction=No
Allow Shrinking=No
Shrink Period=15
Prepared Statement Cache Size=10
TargetServer=ExamplesServer
Properties
user=Objectel
password=superman
Test table=yes
Test Reserved Connections=yes
Test Released Connections=Yes
I could able to connect to oracledataBase if I use
user=scott
password=tiger
with any other database user Iam getting the following error
Could not create pool connection. The DBMS driver exception was:java.sql.SQLException:
ORA-01017: invalid username/password
"Neo Gigs" <[email protected]> wrote:
By end of the error you shown:
<Jan 21, 2003 2:28:20 AM PST> <Notice> <WebLogicServer> <Started WebLogicAdmin
Server "examplesServer" for domain "examples" running in DevelopmentMode>
You are running the Examples application shipped with WLS, which I guest
the
correct DB to connect with is Cloudscape yet to Oracle, unless you make
changes to the original ConnectionPool in the examples. Anyhow, please
show
us your configuration of the ConnectionPool used when this error pops.
"Raj" <[email protected]> wrote in message
news:[email protected]...
Could not create pool connection.The DBMS driver exceptionwas:java.sql.SQLException:
ORA-01017: invalid username/password
Even though I could able to connect to Oracle database using correctuserid,password
and HostString using OracleClient, I couldnt able to do withconnectionpool. Here
is the error message..
<Jan 21, 2003 2:27:50 AM PST> <Notice> <WebLogicServer> <Starting WebLogicAdmin
Server "examplesServer" for domain "examples">
Starting Loading jDriver/Oracle .....
---------- LOGIN ERROR CODE: 1017
---------- LOGIN ERROR CODE: 1017
<Jan 21, 2003 2:28:06 AM PST> <Error> <JDBC> <Cannot startup connectionpool "or
aclePool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: ORA-01017: invalid username/password; logondenied - (Obj
ectel/********@ora8i)
atweblogic.db.oci.OciConnection.getLDAException(OciConnection.java:164)
at weblogic.jdbc.oci.Driver.connect(Driver.java:112)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:193)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
atweblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:623)
atweblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:279)
atweblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:233)
atweblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:621)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy45.updateDeployments(Unknown Source)
atweblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2761)
atweblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:370)
atweblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:621)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy64.start(Unknown Source)
atweblogic.management.configuration.ApplicationManagerMBean_CachingStub
start(ApplicationManagerMBean_CachingStub.java:480)
atweblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:209)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
atweblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:623)
atweblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:279)
atweblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:233)
atweblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:621)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy45.updateDeployments(Unknown Source)
atweblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2761)
atweblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:370)
atweblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:621)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy64.start(Unknown Source)
atweblogic.management.configuration.ApplicationManagerMBean_CachingStub
start(ApplicationManagerMBean_CachingStub.java:480)
atweblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
>
<Jan 21, 2003 2:28:14 AM PST> <Notice> <Management> <Application Pollerstarted
for development server.>
<Jan 21, 2003 2:28:19 AM PST> <Notice> <WebLogicServer> <ListenThreadlistening
on port 7001>
<Jan 21, 2003 2:28:19 AM PST> <Notice> <WebLogicServer> <SSLListenThreadlisteni
ng on port 7002>
<Jan 21, 2003 2:28:20 AM PST> <Notice> <Management> <Starting discoveryof
Manag
ed Server... This feature is on by default, you may turn this off bypassing -Dw
eblogic.management.discover=false>
<Jan 21, 2003 2:28:20 AM PST> <Notice> <WebLogicServer> <Started WebLogicAdmin
Server "examplesServer" for domain "examples" running in DevelopmentMode> -
Nested exception is java.sql.SQLException: ORA-01403: no data found
i am using oracle9.1 and use odbc.
any help is appreciated.
Thanks,
kkIt will be great if you provide some more basic details like:
What activity you was doing??
How you are doing?
Did you get this error earlier also??
Where did you get this error?
It looks like you are using some sort of cursor and not handling the exception properly.
Daljit Singh
Message was edited by:
Daljit -
Simon, why do I get an OrdImage.setProperties() exception ORA-22288
Hi Simon;
I've debugged a problem with the ImageExample to the point where I'm convinced one cannot call setProperties indirectly as the example code shows. SetProperties can only be called during a load - for example imgObj.LoadFromFile
The example from OTN sample code shows a sample method:
public void setPropertiesExample(OracleConnection con)
try
int index = 0;
Statement s = con.createStatement();
OracleResultSet rs =
(OracleResultSet)s.executeQuery("select * from ordimagetab where id = 5 for update");
while(rs.next())
index = rs.getInt(1);
OrdImage imgObj = (OrdImage) rs.getCustomDatum(2, OrdImage.getFactory());
imgObj.setProperties();
System.out.println("set Properties called");
if(imgObj.checkProperties())
System.out.println("checkProperties called");
System.out.println("setProperties successful");
System.out.println("checkProperties successful");
System.out.println("successful");
else
System.out.println("checkProperties called");
System.out.println("setProperties not successful");
System.out.println("checkProperties successful");
OraclePreparedStatement stmt1 =
(OraclePreparedStatement) con.prepareCall("update ordimagetab set image = ? where id = " + index);
stmt1.setCustomDatum(1,imgObj);
stmt1.execute();
stmt1.close() ;
rs.close();
s.close();
catch(Exception e)
System.out.println("exception raised " + e);
}No matter how many times I set this example or create something similar I get this error when I do something like:
ImageExample ie = new ImageExample();
con = ie.connect();
ie.setPropertiesExample(con);
exception raised java.sql.SQLException: ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 418
ORA-06512: at "ORDSYS.ORDIMAGE", line 25
ORA-06512: at line 2
I noticed the only way to avoid this problem is to load the image immediately prior to the setproperties call...like:
OrdImage imgObj = (OrdImage) rs.getCustomDatum(2, OrdImage.getFactory());
imgObj.loadDataFromFile("imgdemo.dat");
imgObj.setProperties();
imgObj.getDataInFile("fileexample.dat");Here I get setproperties to work, but I need to change a lot of code to load images in this form...
I am using the constructors provided and the functions you provided some time back - so I do not believe initialization is the issue here. Any ideas what might be wrong here??Hi Chris,
There are a number of configuration and/or setup problems that can
cause this error. But first, it might be worth describing at a higher
level what is going on here.
By default an interMedia object can store or 'reference' data in one
of 3 ways:
- local: the data is stored locally in the BLOB, the local flag is
set to 1 to indicate this.
- FILE: the source type is set to FILE, which indicates the data is
stored in a directory of which the server is aware and to
which the user/schema has been granted access. The source
location specifies the database server directory name, which
will be upper case unless you created a mixed-case name with
the CREATE DIRECTORY command. The source name specifies the
file name, which is case sensitive on Unix platforms.
- HTTP: the source type is set to HTTP, which indicates the data is
accessed via a web server. The source location is the domain,
port and path and the source name is the item name.
If you instantiate an ORDIMAGE object using something like:
CREATE OR REPLACE DIRECTORY MY_IMAGE_DIR AS 'c:\myphotos';
INSERT INTO MY_IMAGES VALUES
( 1, ORDSYS.ORDIMAGE.INIT( 'FILE', 'MY_IMAGE_DIR', 'photo1.jpg' );then the setProperties method is going to try to open photo1.jpg in
the directory known to the database as MY_IMAGE_DIR. This can fail
with "ORA-22288: file or LOB operation FILEOPEN failed; No such file
or directory" for a number of reasons:
[list]
[*]The directory MY_IMAGE_DIR was never created using CREATE DIRECTORY
[*]The user was not granted read access to MY_IMAGE_DIR
[*]The directory c:\myphotos doesn't exist
[*]The file photo1.jpg doesn't exist in c:\myphotos
[list]
Bear in mind that, essentially, everything is happening at the server,
all the client is doing is causing the setProperties method of the
ORDIMAGE type to be invoked at the server, which reads the image file,
which must be accessible to the server. Assuming everything to be OK,
then the properties will be read from the image and stored in the
object. Of course, since BFILEs are writable, you can't operate on
this image to scale, crop or convert it, for example.
However, in your case, you're hitting one of the problems listed above.
Bear in mind, there are others. For example, although you might be able
to access an image on a shared network drive of some sort, doesn't mean
to say that the database server can do so. This is a common problem on
NT. When logged in as you, you might be able to mount a network drive
and access an image file on that drive. However, that access is being
performed with your NT credentials and access rights. The database server
doesn't have the same credentials and access rights and in all likelyhood
will NOT be able to access the same file. Of course, the same situation
can occur in Unix land with NFS.
Contrast all that with what happens when a client application calls
loadDataFromFile. In this case, the client is reading image data from
a file that is local to the client (which could easily be on a
different machine than the server) and writing that image data
directly into the database as the contents of the BLOB. Therefore,
assuming the image format is recognized, setProperties is going to
succeed because the data is in the database, not external to it.
To sum up: setProperties can be called on an image when stored as a FILE.
However, the database server has to be able to access the file and the
directory in which it is stored. The reason it works when you call
loadDataFromFile is that the data is written to the BLOB in the database,
so the database has access.
Hope that makes sense,
Simon
null -
Deferred transaction fails due to a "ORA-01403: no data found" error
I recently acticated replication between two Oracle instances.
(one being the master definition site and the other one being
a second master site).
Everything was going well until two weeks ago, when i realized
that some datas were different between the two Oracle instances.
I tried to figure out why and found that some deferred transation
failed to propagate due to a "ORA-01403: no data found" error.
Not all transaction fail, only a few.
All the errors are stored in the DEFERROR table of the second
master site, the DEFERROR table is empty in the master definition
site.
For every error, the source is the master definition site and the
destination is the second master site, which is OK because the
second master site is supposed to be "read-only". But why are the
errors stored in the DEFERROR table of the second master site
(and not in the master definition site (the source)).
Most errors occur on UPDATE statements but a few of them occur
on DELETE statements. Given the fact that the record actually is
in the second master site, how is it possible to get a
"ORA-01403: no data found" error on a delete statement ???????
I can't figure out what data cannot be found,
Thanks for your help,
Didier.What if i tell you the first transaction in error is an UPDATE
statement on a record that actually is in the destination table
in the second master site. So the data is there, it should be
found ...
I've tried an EXECUTE_ERROR on that very first transaction
in error but it doesn't work. Here's the call (as repadmin) :
begin
DBMS_DEFER_SYS.EXECUTE_ERROR (
DEFERRED_TRAN_ID => '6.42.271',
DESTINATION => 'AMELIPI.SENAT.FR'
end ;
And here's the full message :
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_DEFER_SYS_PART1" line 430
ORA-06512: at "SYS.DBMS_DEFER_SYS" line 1632
ORA-06512: at "SYS.DBMS_DEFER_SYS" line 1678
ORA-06512: at line 2
I thought it could be because the primary key constraint on the
destination table wasn't activated but it was. Could it
be a problem with the corresponding index ?
Thanks for your help,
Didier. -
NULL in primary keys NOT logged to exceptions table
Problem: Inconsistent behavior when enabling constraints using the "EXCEPTIONS INTO" clause. RDBMS Version: 9.2.0.8.0 and 10.2.0.3.0
- NULL values in primary keys are NOT logged to exceptions table
- NOT NULL column constraints ARE logged to exceptions table
-- Demonstration
-- NULL values in primary keys NOT logged to exceptions table
TRUNCATE TABLE exceptions;
DROP TABLE t;
CREATE TABLE t ( x NUMBER );
INSERT INTO t VALUES ( NULL );
ALTER TABLE t
ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions );
SELECT * FROM exceptions; -- returns no rows
-- NOT NULL column constraints logged to exceptions table
TRUNCATE TABLE exceptions;
DROP TABLE t;
CREATE TABLE t ( x NUMBER );
INSERT INTO t VALUES ( NULL );
ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS );
SELECT * FROM exceptions; -- returns one row
I would have expected all constraint violations to be logged to exceptions. I was not able to find any documentation describing the behavior I describe above.
Can anyone tell me if this is the intended behavior and if so, where it is documented?
I would also appreciate it if others would confirm this behavior on their systems and say if it is what they expect.
Thanks.
- Doug
P.S. Apologies for the repost from an old thread, which someone else found objectionable.I should have posted the output. Here it is.
SQL>TRUNCATE TABLE exceptions;
Table truncated.
SQL>DROP TABLE t;
Table dropped.
SQL>CREATE TABLE t ( x NUMBER );
Table created.
SQL>INSERT INTO t VALUES ( NULL );
1 row created.
SQL>ALTER TABLE t ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions );
ALTER TABLE t ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions )
ERROR at line 1:
ORA-01449: column contains NULL values; cannot alter to NOT NULL
SQL>SELECT * FROM exceptions;
no rows selected
SQL>
SQL>TRUNCATE TABLE exceptions;
Table truncated.
SQL>DROP TABLE t;
Table dropped.
SQL>CREATE TABLE t ( x NUMBER );
Table created.
SQL>INSERT INTO t VALUES ( NULL );
1 row created.
SQL>ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS );
ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS )
ERROR at line 1:
ORA-02296: cannot enable (MYSCHEMA.) - null values found
SQL>SELECT * FROM exceptions;
ROW_ID OWNER TABLE_NAME CONSTRAINT
AAAkk5AAMAAAEByAAA MYSCHEMA T T
1 row selected.
As you can see, I get the expected error message. But I only end up with a record in the exceptions table for the NOT NULL column constraint, not for the null primary key value. -
ORA 00600 Error when using Mapviewer addJDBCTheme
Hello
I am receiveing the 600 error via my OC4J window when using mapviewers addJDBCTheme with the passTthrough boolean set to false (the query is rewitten by mapviewer to limit it to the results to the map view). If I perfrom the same query with passThrough set to true, no problems. I have a feeling this may relate to the index on my table. OC4J output for error below.
Any ideas appriciated.
Chris
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
<map_request
datasource="atrium2"
srid="81989"
width="500"
height="500"
bgcolor="#ffffff"
antialiase="true"
format="PNG_URL">
<center size="800.0">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>278872.6,187144.0</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
<themes>
<theme name="BUIDLING" user_clickable="false" />
<theme name="BLOCKS" user_clickable="false">
<jdbc_query
label_column="mbl_title"
spatial_column="spat_data"
label_style="TEXTBLACK"
render_style="TEST3"
jdbc_srid="81989"
datasource="atrium2"
asis="false">select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c
</jdbc_query>
</theme>
</themes>
</map_request>
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(atrium2) begins...
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :81989
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a predefined theme BUIDLING
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=BUIDLING]
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Theme:
ThemeDescriptor=
name=BLOCKS
type=2
minScale=Infinity
maxScale=-Infinity
srid=81989
host=null
sid=null
port=null
user=null
mode=null
query=select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c
spatialColumn=spat_data
renderStyleName=TEST3
labelColumn=mbl_title
labelStyleName=TEXTBLACK
renderStyleDef=null
labelStyleDef=null
localThem=null
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=false, unit=METER
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-67
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.pgtp] [ BUIDLING ]: 278472.6,186744.0,279272.6,187544.0
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.pgtp] [ BUIDLING ]: SELECT ROWID, GEOLOC, 'PRISM_ADM:BROWN_LINE', null, 'null', -1 FROM SPAT_BUILDING WHERE MDSYS.SDO_FILTER(GEOLOC, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-68
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.theme.DGTP] [Master scale] 153.60000000000002 [Theme scale factor] 1.0
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.DGTP] [DynGeomTheme] rewritten query: SELECT * FROM ( select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c ) WHERE MDSYS.SDO_FILTER(spat_data, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(278472.6,186744.0,279272.6,187544.0)), 'querytype=WINDOW') = 'TRUE'
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.theme.pgtp] [ BUIDLING ] sql exec time: 15ms, total time loading 209 features: 125ms.
Tue Aug 09 10:58:53 BST 2005 WARN [oracle.sdovis.theme.DGTP] java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:969)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2387)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:777)
at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:241)
at oracle.sdovis.Theme.prepareData(Theme.java:174)
at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
Tue Aug 09 10:58:53 BST 2005 ERROR [oracle.sdovis.DBMapMaker] Message:null
Description: Nested exception is:
java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:969)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2387)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:777)
at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:241)
at oracle.sdovis.Theme.prepareData(Theme.java:174)
at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
Tue Aug 09 10:58:53 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 15250ms.
Tue Aug 09 10:58:53 BST 2005 FINEST [oracle.sdovis.RE] xfm: 0.625 0.0 0.0 -0.625 -174045.375 117215.0
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme BUIDLING with 209 styled features: 15ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme BLOCKS with 0 styled features: 0ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme BLOCKS with 0 styled features: 0ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme BUIDLING with 209 styled features: 0ms
Tue Aug 09 10:58:53 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 15ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 16ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 15265ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 31ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 15312msChris,
Can you run this rewritten query
SELECT * FROM ( select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c ) WHERE MDSYS.SDO_FILTER(spat_data, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(278472.6,186744.0,279272.6,187544.0)), 'querytype=WINDOW') = 'TRUE'
in sql*plus without any errors?
The asumptions is there is a spatial index on spat_data and all the geometries are valid.
Also there will be a trace file on the db server. That'll give more details on what the likely cause is.
Jayant -
ORA-12514 error while running adcfgclone.pl
Dear Hussein,
We are cloning an R12 instance, while running adcfgclone.pl dbTier, we are gettign the below error:
============================================================
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : db1
sDbDomain : ******.com
sDbPort : 1551
sDbSid : ERPUAT
sDbUser : APPS
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@db1.******.com:1551:ERPUAT
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db1.******.com)(PORT=1551))(CONNECT_DATA=(SERVICE_NAME=ERPUAT)))
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db1.******.com)(PORT=1551))(CONNECT_DATA=(SERVICE_NAME=ERPUAT.******.com)))
Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Connection could not be obtained; returning null
=============================================================
and in alert log file, there is below error:
=============================================================
alter database open resetlogs
ORA-1194 signalled during: alter database open resetlogs...
alter tablespace TEMP1 add tempfile '/mnt/data/erpuat/db/apps_st/data/temp01.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP1 add tempfile '/mnt/data/erpuat/db/apps_st/data/temp01.dbf' REUSE...
alter tablespace TEMP2 add tempfile '/mnt/data/erpuat/db/apps_st/data/temp02.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP2 add tempfile '/mnt/data/erpuat/db/apps_st/data/temp02.dbf' REUSE...
Sun Sep 13 23:53:24 2009
Shutting down instance (abort)
License high water mark = 1
USER (ospid: 1809): terminating the instance
Instance terminated by USER, pid = 1809
Sun Sep 13 23:53:25 2009
Instance shutdown complete
================================================
Please suggest
Bilal
Edited by: user5499416 on Sep 14, 2009 12:24 AM
Edited by: user5499416 on Sep 14, 2009 12:52 AMBilal,
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directoryPlease verify that the database was created successfully and it is up and running.
Regards,
Hussein -
ORA-00911 Error code in JDBC where no special character is used - Oracle 10
Hi,
I am using Oracle 10G and Tomcat 5.5. I am trying to update a the CONFIRMED column of a table called LISTSERV_WAITING_LIST_TABLE. Please see my code below.
public void doPost(HttpServletRequest request, HttpServletResponse response){
String resRef = getServletContext().getInitParameter("java.comp.env");
String jdbcDbRef = getServletContext().getInitParameter("jdbc.database");
Context dbInitContext = null;
Context dbEnvContext = null;
DataSource dbSource = null;
Connection conn = null;
PreparedStatement prepStatement = null;
String uemail = request.getParameter("email").toUpperCase();
String userId = request.getParameter("userId");
String waitingListTable = getServletContext().getInitParameter("db.waiting.list.table.name");
try{
dbInitContext = new InitialContext();
dbEnvContext = (Context)dbInitContext.lookup(resRef);
dbSource = (DataSource)dbEnvContext.lookup(jdbcDbRef);
conn = dbSource.getConnection();
String sqlcmd = "update " + waitingListTable + " SET CONFIRMED = 'YES' WHERE UEMAIL = '" + uemail + "' and USERID = '" + userId + "';";
prepStatement = conn.prepareStatement(sqlcmd);
prepStatement.executeUpdate();
}catch(NamingException e){
log("Area 4A: NamingException occured");
}catch( SQLException e){
log("Area 4B: Exception occured", e);
When I run the code, I receive the following error message:
SEVERE: FinalSubscriber: Area 4B: Exception occured
java.sql.SQLException: ORA-00911: invalid character
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:952)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at com.sainc.nsb.FinalSubscriber.doPost(FinalSubscriber.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
at java.lang.Thread.run(Unknown Source)
However, when I type the value of the string sqlcmd (used in the PreparedStatement) directly into Oracle, the update works. An example of that string is:
update listserv_waiting_list SET CONFIRMED = 'YES' WHERE UEMAIL = '[email protected]' and USERID = '1142369642862';
It contains no stange character and rows are inserted successfully in another class of the program that uses the same mechanism. The problem comes when I update the table.
Any idea as to what is wrong? Your help will be appreciated.
Thanks,
Nguessanbuddy, why don't you use a stored procedure and make your update, i hate that upkeeping.
callablestatement and the power of Plsql are ur saviours.
regards, djoudi. -
AC-50480 error while generating listener.ora while running autoconfig
Hi,
I am trying my first clone on R1213. We have a split tier configuration. I am able clone the database server successfully.
Now when I run 'perl adcfgclone appsTier', during the autoconfig part, it fails with the error message AC-50480 : Error while generating listener.ora
I have followed note
AC-50480" Error Generating the "listener.ora" File. [ID 1089036.1]
During Autoconfig "adgentns.pl" fails: "AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora" [ID 453901.1]
derigistered bothe the servers
ran autoconfig on the DB
Verified the contents of FND_NODES table.
Everything looks fine, but it still errors during autoconfig.
There is no listener file under $TNS_ADMIN.
There is tnsnames.ora under $TNS_ADMIN
Any clue?
TIA,
AZHere are the contents from NetServiceHandler.log
Processing listener.ora on middle tier
s_enable_listener_password = OFF
instantiate file:
source : /d01/oracle/opda/apps/apps_st/appl/ad/12.0.0/admin/template/iAS_1012_env.tmp
dest : /d01/oracle/opda/inst/apps/OPDA_oratest/ora/10.1.2/OPDA_oratest.env
/d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sql permissions changed to 644 (unix only)
instantiate file:
source : /d01/oracle/opda/apps/apps_st/appl/ad/12.0.0/admin/template/APPLSYS_ux.env
dest : /d01/oracle/opda/apps/apps_st/appl/OPDA_oratest.env
/d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sql permissions changed to 644 (unix only)
instantiate file:
source : /d01/oracle/opda/apps/apps_st/appl/ad/12.0.0/admin/template/adovars_ux.env
dest : /d01/oracle/opda/inst/apps/OPDA_oratest/appl/admin/adovars_OPDA_oratest.env
/d01/oracle/opda/inst/apps/OPDA_oratest/appl/admin/adovars_OPDA_oratest.env permissions changed to 644 (unix only)
instantiate file:
source : /d01/oracle/opda/apps/apps_st/appl/fnd/12.0.0/admin/template/admk80ln_ux.sql
dest : /d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sql
/d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sql permissions changed to 600 (unix only)
instantiate file:
source : /d01/oracle/opda/apps/apps_st/appl/fnd/12.0.0/admin/template/admk80ln.sh
dest : /d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sh
/d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sh permissions changed to 700 (unix only)
Execution of /d01/oracle/opda/inst/apps/OPDA_oratest/admin/install/admk80ln.sh is given to TimedProcess
admk80ln.sh started at Thu Sep 29 08:56:59 EDT 2011
The environment settings are as follows ...
ORACLE_HOME : /d01/oracle/opda/apps/tech_st/10.1.2
ORACLE_SID :
TWO_TASK : OPDA
PATH : /d01/oracle/opda/inst/apps/OPDA_oratest/admin/scripts:/d01/oracle/opda/apps/tech_st/10.1.3/perl/bin:/d01/oracle/opda/apps/tech_st/10.1.2/bin:/d01/oracle/opda/apps/apps_st/appl/fnd/12.0.0/bin:/d01/oracle/opda/apps/apps_st/appl/ad/12.0.0/bin:/d01/oracle/opda/apps/tech_st/10.1.3/appsutil/jdk/jre/bin::/d01/oracle/opda/apps/tech_st/10.1.2/bin:/usr/bin:/usr/sbin:/d01/oracle/opda/apps/tech_st/10.1.3/appsutil/jdk/jre/bin:/d01/oracle/opda/apps/tech_st/10.1.3/perl/bin:/d01/oracle/opda/inst/apps/OPDA_oratest/admin/scripts:/d01/oracle/opda/apps/tech_st/10.1.3/perl/bin:/d01/oracle/opda/apps/tech_st/10.1.2/bin:/d01/oracle/opda/apps/tech_st/10.1.3/appsutil/jdk/jre/bin:/d01/oracle/opda/apps/tech_st/10.1.2/bin:/usr/bin:/usr/sbin:/d01/oracle/opda/apps/tech_st/10.1.3/appsutil/jdk/jre/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/bin/X11:/usr/X11R6/bin:/usr/sbin:.:/d01/oracle/opda/apps/tech_st/10.1.2/OPatch:/d01/oracle/opda/apps/tech_st/10.1.3/appsutil/jdk/bin:/d01/oracle/opda/apps/tech_st/10.1.3/ant/bin:/home/applopda/bin:/d01/oracle/opda/apps/tech_st/10.1.2/OPatch:/d01/oracle/opda/apps/tech_st/10.1.3/appsutil/jdk/bin:/d01/oracle/opda/apps/tech_st/10.1.3/ant/bin
Library Path : /d01/oracle/opda/apps/tech_st/10.1.2/jdk/jre/lib/i386:/d01/oracle/opda/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:/d01/oracle/opda/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:/d01/oracle/opda/apps/apps_st/appl/cz/12.0.0/bin:/d01/oracle/opda/apps/tech_st/10.1.2/lib32:/d01/oracle/opda/apps/tech_st/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/d01/oracle/opda/apps/tech_st/10.1.2/jdk/jre/lib/i386:/d01/oracle/opda/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:/d01/oracle/opda/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:/d01/oracle/opda/apps/apps_st/appl/sht/12.0.0/lib
SQLPLUS Executable : /d01/oracle/opda/apps/tech_st/10.1.2/bin/sqlplus
SQL*Plus: Release 10.1.0.5.0 - Production on Thu Sep 29 08:57:00 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter value for 1: Enter value for 2: ERROR:
ORA-12157: TNS:internal network communication error
Unable to generate listener.ora from database
Using default listener.ora file
.end std out.
.end err out.
Error while generating listener.ora.
StackTrace:
java.lang.Exception: Error while generating listener.ora.
at oracle.apps.ad.tools.configuration.NetServiceHandler.generateMiddleTierListener(NetServiceHandler.java:2495)
at oracle.apps.ad.tools.configuration.NetServiceHandler.processNode(NetServiceHandler.java:2269)
at oracle.apps.ad.tools.configuration.NetServiceHandler.main(NetServiceHandler.java:3010) -
ORA-03113 end-of-file on channel communication
Hello at everyone:
I have a laptop pentium 133 MMX, 40 MB Ram, 2.1 GB.
I have been installed slackware 3.5, kernel 2.0.36, on it and
oracle 8 too.
I run svrmgrl, connect internal, everithing go well, but when
write the command "startup nomount" <ENTER>, oracle begin to work
and 2 seconds after, more or less, appear the message of the
subject.
I found the possibly means of this:
ORA-03113: end-of-file on communication channel
Cause: An unexpected end-of-file was processed on the
communication channel. The problem could not be handled by the
Net8, two task, software. This message could occur if the shadow
two-task process associated with a Net8 connect has terminated
abnormally, or if there is a physical failure of the interprocess
communication vehicle, that is, the network or server machine
went down.
Action: If this message occurs during a connection attempt, check
the setup files for the appropriate Net8 driver and confirm Net8
software is correctly installed on the server. If the message
occurs after a connection is well established, and the error is
not due to a physical failure, check if a trace file was
generated on the server at failure time. Existence of a trace
file may suggest an Oracle internal error that requires the
assistance of customer support.
------------------------------------------<^
This possibility, above |, i guess that not apply, because, i
work in any network, everything is local.
------------------------------------------<ORA-3113: end of file communication channel
Cause: An unexpected end-of-file was processed on the
communication channel. The TCP/IP retransmission count on Win
NT/95 has a default value of 5. This means that the send side
retransmits the packet five times or until it gets an
acknowledgment. The timeout for each retransmission is two times
the timeout for the previous retransmission (exponential
backoff). With the default value of 5, the send side retransmits
5 times (approximately. 15 seconds) and if it does not get an
acknowledgment. it assumes that the other side is down and closes
the connection. If the link goes down for a minute or two the
Net8 client receives this error.
Action: Modify the retransmission count.
Please see your Microsoft specific operating system manual for
more information on tuning the microsoft TCP/IP software.
----------------------------------------------<I got it from Oracle 8 documentation for W95/NT. I guess that it
is a good posibility. But how can to modify the retransmission
count under Linux?
This is the alert_UNIX.log
Sun Feb 21 21:54:35 1999
Shutting down instance (abort)
Sun Feb 21 21:55:34 1999
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
LICENSE_MAX_USERS = 0
Starting up ORACLE RDBMS Version: 8.0.5.0.0.
System parameters with non-default values:
processes = 50
shared_pool_size = 3500000
control_files = ora_control1, ora_control2
db_block_buffers = 100
log_buffer = 8192
log_checkpoint_interval = 10000
db_files = 80
db_file_multiblock_read_count= 8
sequence_cache_entries = 10
sequence_cache_hash_buckets= 10
global_names = TRUE
db_name = UNIX
parallel_max_servers = 5
max_dump_file_size = 10240
Sun Feb 21 21:55:37 1999
Errors in file
/usr/local/apps/oracle/product/8.0.5/rdbms/log/ora_unix_1534.trc:
ORA-07445: exception encountered: core dump [11] [43] [] [] [] []
Shutting down instance (abort)
License high water mark = 0
Instance terminated by USER, pid = 1538
And that is the ora_unix_1534.trc:
Dump file
/usr/local/apps/oracle/product/8.0.5/rdbms/log/ora_unix_1534.trc
Oracle8 Release 8.0.5.0.0 - Production
PL/SQL Release 8.0.5.0.0 - Production
ORACLE_HOME = /usr/local/apps/oracle/product/8.0.5
System name: Linux
Node name: wired
Release: 2.0.35
Version: #1 Sat Feb 20 08:41:09 COT 1999
Machine: i586
Instance name: UNIX
Redo thread mounted by this instance: 0 <none>
Oracle process number: 0
Unix process pid: 1534, image: oracleUNIX
Exception signal: 11, code = 2b
ORA-07445: exception encountered: core dump [11] [43] [] [] [] []
----- Call Stack Trace -----
calling call entry argument
values in hex
location type point (? means
dubious value)
ssexhd()+221 CALL ksedst()+0 40033DFC ? 400
----- Argument/Register Address Dump -----
Argument/Register addr=40033dfc. Dump of memory from 40033DBC to
40033EFC
40033DA0
00000000
40033DC0 00000000 0000007E 000003A3 00000000 00000036 00000461
00000661 000006EF
40033DE0 00000000 00000000 00000208 000000F2 000002FF 000000F0
000002B6 00000000
40033E00 00000000 00000000 00000000 00000001 00091250 00000000
FFF10011 0000000A
40033E20 00090560 00000000 FFF10011 00000020 00015D50 00000031
000B0012 00000034
40033E40 0008320C 00000031 000C0012 0000003A 000912D8 00000004
00170011 00000040
40033E60 000912D8 00000004 00170011 00000047 00090544 00000000
FFF10011 0000005E
40033E80 00090550 00000000 FFF10011 00000074 00015D84 00000049
000B0012 00000080
40033EA0 00083240 0000000B 000D0011 0000008F 0008324B 00000006
000D0011 0000009E
40033EC0 00015DD0 0000002A 000B0012 000000B3 000659B0 00000046
000B0022 000000BB
40033EE0 00015DFC 0000001C 000B0012 000000C7 0005A2C0 0000003F
000B0012
----- End of Call Stack Trace -----
===================================================
PROCESS STATE
Process global information:
process: 0, call: 0, xact: 0, curses: 0, usrses: 0
No process is allocated.
END OF PROCESS STATE
******************** Cursor Dump ************************
No curdef array
ssexhd: crashing the process...
Shadow_Core_Dump = full
Well, i have been installed oracle 8 succesfully in my Desktop
PC, with oracle working well, i can3t understand what happened in
my laptop.
My Desktop, 48 Mb, 4.5 GB, Pentium 166 MMX, Slackware 3.3, kernel
2.0.36.
Thanks in advanced, for your attention and help.
nullORA-00600/ORA-07445/ORA-03113 = Oracle bug => search on Metalink and/or call Oracle support
-
Sqlnet.ora doesn't seem to be read since oci8 1.3.4
Hello,
I used to use oci8 version 1.2.3 and I wanted to update to last version (1.3.4). Everything works fine except the fact that "sqlnet.ora" does not seems to be read anymore.
I use the following string to describe my database in oci_connect: "MEN1PRD".
In sqlnet.ora there is the parameter NAMES.DEFAULT_DOMAIN which is set to "WORLD".
In the tnsname.ora I have a full definition for "MEN1PRD.WORLD".
With oci8 1.2.3, it worked but since I upgraded to 1.3.4 this is not the case anymore. I have to use the same ID in oci_connect and tnsname.org. The sqlnet.ora NAMES.DEFAULT_DOMAIN does not seem to be used anymore.
The version of php (5.2.3) is still the same, the configure options are the sames, the oracle lib is the same (9.2) and the php.ini parameters are the same too. I just changed the oci8 version.
Has anyone the same problem ? Is this a normal behaviour ? If yes, why
and is there a workaround ?
Thanks for your answers.
++ Jerome
Reproduce code:
Piece of code which used to work (version 1.2.3) and doesn't work
anymore (version 1.3.4):
$conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD');
Piece of code which works (version 1.3.4):
$conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD.WORLD');
Content of sqlnet.ora (which is in the same directory as tnsname.ora):
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
NAMES.DEFAULT_DOMAIN = WORLD
LOG_DIRECTORY_SERVER = /var/tmp
Contenat of tnsname.ora
MEN1PRD_RAC =
( DESCRIPTION =
( ADDRESS = ( PROTOCOL = TCP )( HOST = host1 )( PORT = 1521 ) )
( ADDRESS = ( PROTOCOL = TCP )( HOST = host2 )( PORT = 1521 ) )
( LOAD_BALANCE = yes )
( CONNECT_DATA =
( SERVER = DEDICATED )
( SERVICE_NAME = SN_MEN1PRD )
Init script:
export ORACLE_HOME=/usr/local/oracle/VERSIONS/Linux/CL.9.2.0
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/network/admin:$ORACLE_HOME/lib:/usr/local/bin
export ORACLE_SID=MEN1PRD
export HOSTNAME=`hostname`
export NLS_LANG=FRENCH_FRANCE.WE8ISO8859P15
export LC_ALL=fr_FR
export LANG=fr_FR
Expected result:
The connexion is made to the database
Actual result:
[Mon Feb 16 18:05:14 2009] [error] [client 127.0.0.1] PHP Warning:
oci_connect() [function.oci-connect]:
ORA-12154: TNS:could not resolve service name in /var/www/docs/test1.php
on line 2See http://pecl.php.net/bugs/bug.php?id=15988 It's a problem with 9.2 - 10.2.0.3, fixed in 10.2.0.4
Discussions about best solution is ongoing; currently centering around not using session pooling code path in PHP OCI8 when using Oracle prior to 11. -
Defaulting Rules using PL/SQL Api - ORA error
Hi All,
Iam using the PLSQL api for OM defaulting rules. Based on the item in the Sales order line, Line type has to be defaulted.
I have put debug messages and iam able to see successful execution and the required Line type value is returned. No exception is raised.
Error ORA-06502 PL/SQL numberic to value error. Character to number conversion error is thrown outside the custom package.
PLSQL api is coded as below.
CREATE OR REPLACE PACKAGE BODY xx_default_ordertype IS
G_PKG_NAME CONSTANT VARCHAR2(30) := 'XX_DEFAULT_ORDERTYPE';
FUNCTION get_trans_type
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN varchar2 IS
l_trans_type VARCHAR2(30);
-- l_item_id NUMBER := ONT_LINE_DEF_HDLR.g_record.ORDERED_ITEM_ID;
BEGIN
SELECT b.name
INTO l_trans_type
FROM OE_TRANSACTION_TYPES_tL b,
oe_transaction_types_all a
WHERE a.transaction_type_id=b.transaction_type_id
AND attribute1=ONT_LINE_DEF_HDLR.g_record.INVENTORY_ITEM_ID;
RETURN l_trans_type;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN l_trans_type;
WHEN OTHERS THEN
insert_sstab(7,'in exception');
IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
OE_MSG_PUB.Add_Exc_Msg (G_PKG_NAME, 'xx_default_ordertype');
END IF;
RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
END get_trans_type;
END xx_default_ordertype;
Not able to figure out where the ORA error is getting raised from.
Kindly help
Edited by: user11969666 on Mar 19, 2011 7:47 AMbtw, I did try your test and it didn't error for me:
CREATE OR REPLACE PACKAGE xx_default_ordertype IS
FUNCTION get_trans_type
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN varchar2;
end xx_default_ordertype;
CREATE OR REPLACE PACKAGE BODY xx_default_ordertype IS
FUNCTION get_trans_type
p_database_object_name IN VARCHAR2,
p_attribute_code IN VARCHAR2
RETURN varchar2 IS
l_trans_type OE_TRANSACTION_TYPES_tL.name%TYPE :='a';
BEGIN
RETURN l_trans_type;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN l_trans_type;
END get_trans_type;
END xx_default_ordertype;
begin
dbms_output.put_line(xx_default_ordertype.get_trans_type('X','Y'));
end;
/ -
Exception placement in anonymous block
Hi,
I am having difficulty trying to figure out why this exception won't work.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> DECLARE num NUMBER;
2 compile_rec VARCHAR2(200);
3 v_owner VARCHAR2(50);
4 error_24344 exception;
5 pragma exception_init(error_24344, -24344);
6
7 BEGIN
8
9 v_owner := 'FMBSITE';
10
11 FOR c1 IN
12 (SELECT object_type
13 , object_name
14 FROM user_objects
15 WHERE object_name NOT LIKE 'SYS%'
16 AND object_name NOT LIKE 'BIN%'
17 AND object_type IN ('VIEW'
18 ,'PACKAGE'
19 ,'PROCEDURE'
20 ,'FUNCTION'
21 ,'TRIGGER'
22 ))
23 LOOP
24
25 compile_rec := 'ALTER ' || c1.OBJECT_TYPE || ' ' || v_owner || '.' || c1.object_name || ' COMPILE';
26
27 DBMS_OUTPUT.enable(500000);
28 DBMS_OUTPUT.PUT_LINE(compile_rec || ';');
29
30 EXECUTE IMMEDIATE (compile_rec);
31
32 EXCEPTION
33 -- Do this if the object type does not compile successfully.
34 WHEN error_24344 THEN
35 DBMS_OUTPUT.PUT_LINE(c1.object_name || ' success with compilation error ORA-24344.');
36 END;
37
38 END LOOP;
39
40 END;
41 /
EXCEPTION
ERROR at line 32:
ORA-06550: line 32, column 6:
PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the
following:
begin case declare end exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
ORA-06550: line 38, column 7:
PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
SQL> Thank You for any assistance
BenHere's an easy one - you have one more END than you have BEGINs.
In other words, your LOOP contains an EXCEPTION andn an END but no matching BEGIN.
Try this:
23 LOOP
24 BEGIN -- <== add this line
25 compile_rec := 'ALTER ' || c1.OBJECT_TYPE || ' ' || v_owner || '.' || c1.object_name || ' COMPILE';
26
27 DBMS_OUTPUT.enable(500000);
28 DBMS_OUTPUT.PUT_LINE(compile_rec || ';');
29
30 EXECUTE IMMEDIATE (compile_rec);
31
32 EXCEPTION
33 -- Do this if the object type does not compile successfully.
34 WHEN error_24344 THEN
35 DBMS_OUTPUT.PUT_LINE(c1.object_name || ' success with compilation error ORA-24344.');
36 END;
37
38 END LOOP; -
Error ORA-27102: out of memory
I am trying to configure 8i on Solaris Intel and continue to receive this message. I have read a few other posts for users w/ the same problem. Maybe some of you can assist. Any help is very much appreciated.
Here are my settings.
40GB HD
512mhz
Solaris 8
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=200
set shmsys:shminfo_shmmni=600
set shmsys:shminfo_shmseg=200
set semsys:seminfo_semmni=3000
set semsys:seminfo_semmsl=2048
set semsys:seminfo_semopm=200
set semsys:seminfo_semmns=20000
set semsys:seminfo_semvmx=32767
set semsys:seminfo_semaem=16384
set semsys:seminfo_semmap=300
set semsys:seminfo_semmnu=800
set semsys:seminfo_semume=200I'm actually going thru the similar problem as you are. Except that my error is ORA-27101: shared realm memory does not exist. I dont know if it relates to the same problem but have you figured it out yet.
Thanks
Ian
Maybe you are looking for
-
External Display not being found
Hey i posted this under macbook display but no one really goes in there so can you guys help?? Hi recently i borrowed a friends official apple mini-dvi to video adapter to watch a movie with my macbook. He uses the cable with his iMac. I tried pluggi
-
How can I share a folder between two users on the same iMac?
I have an iMac with 2 user accounts and I want to share a folder between them. I have gone on to system preferences>sharing and turned on file sharing. I have also got the 'Get Info' thing up, selected 'Shared Folder' and added the other user to the
-
How to Create primary key index with duplicate rows.
Hi All, While rebuilding an index on a table , I am getting error that there are duplicate rows in a table. Searching out the reason led me to an interesting observation. Please follow. SELECT * FROM user_ind_columns WHERE table_name='SERVICE_STATUS'
-
Updating a sales order through DI API
Hi All, I have an issue regarding updating a sales order. The problem is: If there r 2 items(A00001&A00002) existed in the sales order and if I am adding two more items(A00003 & 4)the sales order is updated in a fashion that first item is repl
-
Why is my "selected calendars" button grayed out?
I have trouble syncing my calendars so I would like to see if I can sync a brand new calendar So I created one in Outlook but itunes doesn't let me pick it. The "selected calendars" button is grayed out and it doesn't display the different calendars.