Error accessing User-Database from Jython CLI
Hi All,
once again, we experience a problem, when running udb commands from the Jython CLI, namely one of 'udb.g.la' or 'udb.u.la' (Others may be affected as well).
Our user is logged on and the application handle works well for any other CLI calls.
Our code looks something like this:
app = PyCLUI()
app.execRaw('udb.login'{...}) # as admin user
app.execRaw('udb.g.la',{})This fails with a ClientException. I have printed the stack-trace:
com.sun.n1.sps.model.util.ClientException
at com.sun.n1.sps.model.util.ClientException.wrap(ClientException.java:96)
at com.raplix.rolloutexpress.ui.api.CommandManagerImpl.innerExecute(CommandManagerImpl.java:312)
at com.raplix.rolloutexpress.ui.api.CommandManagerImpl.execute(CommandManagerImpl.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:173)
at org.python.core.PyMethod.__call__(PyMethod.java:99)
at org.python.core.PyObject.__call__(PyObject.java:650)
at clui$py.execRaw$4(clui.py:46)
at clui$py.call_function(clui.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:437)
at org.python.core.PyTableCode.call(PyTableCode.java:333)
at org.python.core.PyFunction.__call__(PyFunction.java:195)
at org.python.core.PyMethod.__call__(PyMethod.java:99)
at org.python.core.PyObject.__call__(PyObject.java:650)
at org.python.pycode._pyx0.dumpUsers$36(cli_base.py:327)
at org.python.pycode._pyx0.call_function(cli_base.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:437)
at org.python.core.PyFunction.__call__(PyFunction.java:189)
at org.python.core.PyObject._callextra(PyObject.java:786)
at org.python.pycode._pyx0.main$44(cli_base.py:556)
at org.python.pycode._pyx0.call_function(cli_base.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:277)
at org.python.core.PyFunction.__call__(PyFunction.java:174)
at org.python.pycode._pyx0.f$0(cli_base.py:563)
at org.python.pycode._pyx0.call_function(cli_base.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1211)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:319)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:158)
at org.python.util.jython.main(jython.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.raplix.rolloutexpress.node.bootstrap.BootStrap.run(BootStrap.java:254)
at com.raplix.rolloutexpress.node.bootstrap.BootStrap.main(BootStrap.java:52)
java.lang.ArrayStoreException
at com.raplix.util.proxy.ProxyManager.privateToPublicInstance(ProxyManager.java:422)
at com.raplix.rolloutexpress.ui.api.CommandManagerImpl.innerExecute(CommandManagerImpl.java:304)
at com.raplix.rolloutexpress.ui.api.CommandManagerImpl.execute(CommandManagerImpl.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:173)
at org.python.core.PyMethod.__call__(PyMethod.java:99)
at org.python.core.PyObject.__call__(PyObject.java:650)
at clui$py.execRaw$4(clui.py:46)
at clui$py.call_function(clui.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:437)
at org.python.core.PyTableCode.call(PyTableCode.java:333)
at org.python.core.PyFunction.__call__(PyFunction.java:195)
at org.python.core.PyMethod.__call__(PyMethod.java:99)
at org.python.core.PyObject.__call__(PyObject.java:650)
at org.python.pycode._pyx0.dumpUsers$36(cli_base.py:327)
at org.python.pycode._pyx0.call_function(cli_base.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:437)
at org.python.core.PyFunction.__call__(PyFunction.java:189)
at org.python.core.PyObject._callextra(PyObject.java:786)
at org.python.pycode._pyx0.main$44(cli_base.py:556)
at org.python.pycode._pyx0.call_function(cli_base.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:277)
at org.python.core.PyFunction.__call__(PyFunction.java:174)
at org.python.pycode._pyx0.f$0(cli_base.py:563)
at org.python.pycode._pyx0.call_function(cli_base.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1211)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:319)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:158)
at org.python.util.jython.main(jython.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.raplix.rolloutexpress.node.bootstrap.BootStrap.run(BootStrap.java:254)
at com.raplix.rolloutexpress.node.bootstrap.BootStrap.main(BootStrap.java:52)I am not able to dig deeper, unfortunately. Is this worth filing a bug?
Regards,
Frank
I believe there was a bug filed on this issue. A patch for this issue has been released.
I think following solaris patches address this issue for MS/CLI 122989-02, 122990-02, 122991-02, 122992-02.
hope this helps,
Aj
Similar Messages
-
Error accessing mysql database from a remote host
Hi all,
I'm running the following PL/SQL script and encountered some errors. The MySQL server is hosted off campus by a hosting company. However, when I run the same script against a MySQL database server hosted on campus, the script works fine. Here's the error:
ERROR at line 3:
ORA-04052: error occurred when looking up remote object
cmswhit_odbc13.mdl_user@RLTEST
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[MySQL][ODBC 5.1 Driver][mysqld-4.1.22-standard]SELECT command denied to user
'cmswhit_odbc13'@'192.160.216.13' for table 'mdl_user'
ORA-02063: preceding 2 lines from RLTEST
Here's the script:
sqlplus -s <<endofit
$USERPASS
set serveroutput on;
DECLARE
user_name varchar2(30);
moo_user_name varchar2(300);
routine VARCHAR2(40);
cntr NUMBER(8);
CURSOR read_saradap is
select gobtpac_external_user
from gobtpac
where gobtpac_external_user in ('greenup','yfeng');
CURSOR read_mdl_user is
select "username" from "mdl_user"@rltest where "username" = user_name;
-- E N D O F C U R S O R S --
BEGIN
dbms_output.enable(1000000000);
-- STEP 1: Read through Banner
cntr := 0;
OPEN read_saradap;
LOOP
routine := 'Read applicant';
-- Read an applicant record
dbms_output.put_line('Reading Banner user');
FETCH read_saradap INTO user_name;
EXIT WHEN read_saradap%NOTFOUND;
dbms_output.put_line('Read Banner username=' || user_name);
cntr := cntr + 1;
-- Read the Moodle user;
routine := 'Read moodle user';
OPEN read_mdl_user;
FETCH read_mdl_user INTO moo_user_name;
IF read_mdl_user%NOTFOUND THEN
dbms_output.put_line('Moodle user not found');
ELSE
dbms_output.put_line('Read Moodle username=' || moo_user_name);
END IF;
CLOSE read_mdl_user;
END LOOP;
rollback;
CLOSE read_saradap;
dbms_output.put_line('Total processed: ' || cntr);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(SQLCODE);
dbms_output.put_line(SQLERRM);
dbms_output.put_line('Error user=' || user_name);
dbms_output.put_line(routine);
END;
EXIT;
endofitThe error seems to be quite clear: the user 'cmswhit_odbc13'@'192.160.216.13' lacks the SELECT privilege on the 'mdl_user' table...
Max
http://oracleitalia.wordpress.com -
Trying to access 10gr2 database from sqlplus utility but it connects to 11g
Hi All,
I am facing below issue while access 10gr2 database from sqlplus.
I am having two oracle homes on one server one belongs to 11gr2 and another belongs to 10gr2.
I want to access a 10gr2 database through sqlplus utility.but instaed of connecting to 10gr2 it is connecting to 11gr2 after I enter a user name and passowrd.
I have set all the env variables such as oracle_home ,oracle_sid and path with respect to Oracle 10gr2.
Can you please let me kno what I need to do to connect to 10gr2 database and not 11gr2 database through sql plus.
Let me know if I need to give any more details on this.
Best Regards,
Dipti SHi Rocky,
I got the resolution.
I made a mistake by creating an oracle instance/service(e.g. fsdmo) when Oracle_home was pointing to 11gR2 Directory.so that service was refering to 11gr2 oracle home.
hence when I was setting oracle_sid(fsdmo) and trying to access database instance from 11g sqlplus utility ,it was directing to 11g and not 10g since oracle service was pointing to 11g.
So now after chnaging the oracle home directory to 11g,I am creating a service and its working fine.
thank you so much for responding.
hope I am clear with my reply.
Best Regards,
Dipti S -
The security code won't let my applet access its own database (from its own server)..
I'm using getDocumentBase()
to try and tell it that it is my own damn file..
I keep getting :
java.securityAccessControlException: access denied <java.util.PropertyPermission jdbc.drivers write>
...etc.
This applet crap is really starting to piss me off. I can see why they came out with JSP.
All I need to do is access my database, update it, etc. It kind of defeats the purpose of being able to do jdbc from applets if you can't even access the database on your own damn server.
If you all don't have a clue, I'm freakin switching to PHP--I'm tired of this crap-I was thinking Java was a damn good language until I hit applets.The simple answer to your question is: Because of security concerns.
The somewhat longer answer is that directly accessing a database from an applet is generally not a good idea. A lot of security-critical code like DB username/password must be hidden in the applet which potentially can be downloaded (and disassembled) by anyone that hits your webpage. Maybe you do an intranet solution with trusted users but that is not what applets were originally designed for.
The clean way is to make your applet talk to a servlet that talks to your database.
If that is not the way you want to do it, make sure that all client policy files (yes, on the browser machine) contain the permissions that your applet needs. -
Restoring a User Database from External Backup
It has been a good 8 years since I have had to recover a user database from backup and I just really wanted a verification of what needs to be recovered.
Just recently had a user get a C00E error and the analyzer suggested restoring from backups. No problem, we run backups daily on the mail server (yes ... we use windows *sigh*) and we use Veritas Backup Exec. to run full/incremental backups.
In order to recover the user, do I just need to restore the userXXX.db located in the ofuser folder? Since it will be a couple days older, will I need to restore anything else or should that folder alone be fine?
Thanks in advance for any input.On 11/13/2012 1:26 PM, dpenney wrote:
>
> It has been a good 8 years since I have had to recover a user database
> from backup and I just really wanted a verification of what needs to be
> recovered.
>
> Just recently had a user get a C00E error and the analyzer suggested
> restoring from backups. No problem, we run backups daily on the mail
> server (yes ... we use windows *sigh*) and we use Veritas Backup Exec.
> to run full/incremental backups.
>
> In order to recover the user, do I just need to restore the userXXX.db
> located in the ofuser folder? Since it will be a couple days older,
> will I need to restore anything else or should that folder alone be
> fine?
>
> Thanks in advance for any input.
>
>
try that first
other things like MSGxxx and OFFILES are shared... -
Error Code...0x8AB1023 Error Accessing Historical Database
Hi,
I have recently started development using LabView7.1 (DSC Module). There is a nice example in the Getting Started Manual showing Real Time Trending and Historical data view. I followed the development steps but running the VI given displays the error message. Error Code 0x8AB1023: Failed to map database file to shared memory. I have attached the screenshots of the error messages. The same error messages are displayed even if I run the DSC examples. I am new to Labview so cannot really figure out the reason
Thanks
Attachments:
aaa.jpg 85 KB
bbbb.jpg 107 KB
ccc.jpg 136 KBHello Nustian,
As Dennis said- LabVIEW 7.1 was released nearly ten years ago and is not supported on Windows 7; since the error you are getting appears to be related to file I/O, memory access, or a database driver, it's a good bet that something has changed in the OS that is affecting the examples you're trying to use.
If you do need to use LabVIEW 7.1 and MAX 3.1, you'll probably need to use an earlier version of Windows as well (XP SP1 or similar). The software may be operable in Windows 7 compatability mode, but this isn't a recommended or supported configuration and there are probably going to be more problems down the road.
That being said, it looks like there is at least one (quite old) help document mentioning a similar error that you might want to take a look at:
KnowledgeBase 27PGKDJ6: Error Accessing Historical Database System Error from the LabVIEW DSC Engine
http://digital.ni.com/public.nsf/allkb/4263DA141111EA2086256A1B00821611
Regards,
Tom L. -
Installing components using auto-generated plans from Jython CLI
Hi All,
for specific reasons, we want to install a set of components with fixed signatures from Jython CLI, but without appropriate plans. In fact, we want to simulate the behavior that we know from Plugin UI, i.e. linking directly to an installer of a component.
We figured the following steps are necessary within CLI code:
1) For the targeted component generate an appropriate install plan using 'pdb.p.genplan' command. This unfortunately does not create the plan within the system, but rather has to be redirected to a file.
2) Import the previously generated plan using 'pdb.p.ci' command from this file.
3) run the plan using fixed signature to install component
4) eventually remove the plan.
Now, the problem is, that step 1) generates a plan targeted for the folder '/system/autogen', but step 2) fails on importing the plan there, because the folder is owned by the system plugin. So we would end up parsing the XML file, replacing path and so on .... We definately don't want to reinvent the wheel, here.
Any help appreciated!!!
Regards,
FrankFirst of all, thanks for the super-fast reply.
We got around with parsing using the xml.dom.minidom package in Python. Three more lines and poorer performance, but nothing you can measure against the CLI performance itself ;-)
I like the idea of using a template plan, as you suggested, because the generated ones bear another problem: We have to pipe in the plan parameters, which we don't know for sure, except for one, that is the 'markOnly' flag. So this might get us around piping in stupid dummy params.
How exactly do you wait for the plan completion? We use 'pe.p.lo', but don't know how to figure out, if it was successful or not, at all. No return code this time, and stdout isn't filled in markOnly=true mode.
Regards,
Frank -
Error accessing domain database for selected domain
when attempting to install the groupwise gateway for microsoft exchange 7.02, i receive the following error:
error accessing domain database for selected domain. invalid or non-existant domain database.
the existing gw80 environment consists of a few sles 10 servers (mta, po, gwia, webacc) with edirectory 8.8 sp2, and an external bind dns. i've built a gateway system with the following components:
ws03sp2
ex2k3sp2
novell client 4.91sp5
c1 1.3.6h
edir88sp3
gw801 mta
can anybody share tips for getting the gateway to see the domain database? are there installation logs i can check? are there any srv records that i need to verify are manually created in the bind dns? will i need microsoft's exchange connector for novell groupwise?Hi
I am having the same issue with GW6.5 Exch2003 both running on Win2003 server.
Do you have a solution? If so please update this thread.
Thanks
Jason
Originally Posted by csp122
when attempting to install the groupwise gateway for microsoft exchange 7.02, i receive the following error:
error accessing domain database for selected domain. invalid or non-existant domain database.
the existing gw80 environment consists of a few sles 10 servers (mta, po, gwia, webacc) with edirectory 8.8 sp2, and an external bind dns. i've built a gateway system with the following components:
ws03sp2
ex2k3sp2
novell client 4.91sp5
c1 1.3.6h
edir88sp3
gw801 mta
can anybody share tips for getting the gateway to see the domain database? are there installation logs i can check? are there any srv records that i need to verify are manually created in the bind dns? will i need microsoft's exchange connector for novell groupwise? -
Accessing a Database from multiple threads
I would like to create a database application where more then one thread can access this database at once. What is the best way to synchronize access to it so as to prevent errors?
Actually, I wasn't thinking of using an SQL database since I haven't studied it. But, would it be a good idea to have one object of type "Database", and use 'synchronize' to control thread access?
Also, the database access needs to be restricted based on different users, so I am using a SecurityManager. I was thinking the structure would look something like this:
security manager
database manager
database
in this way, a request to retrieve data from the database would need to be requested from my security manager. If the request is allowed, it would be filtered down to the database manager. Is this the best way to do this?
And finally, someone told me that using something like an "event queue" to access data would work but I've never tried this. My database manager thread would process the requests one at a time. would this work well? -
Facing Parse Errors after upgrading database from 10g to 11g
Hi,
We are facing parse errors in the SQL's after upgrading database from 10g to 11g.
Kindly look into below parse errors.
********************************** Parse Error *****************************************************
Tue Aug 13 14:13:08 2013
kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
PARSE ERROR: ospid=15598, error=1446 for statement:
SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
Tue Aug 13 14:13:10 2013
kksfbc 16173533: parse err=942 hd=3c387c4028 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
PARSE ERROR: ospid=29813, error=942 for statement:
Select feature from toad.toad_restrictions where user_name=USER or user_name in ( select ROLE from sys.session_roles)
kksfbc 16173533: parse err=942 hd=3c97d83648 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
PARSE ERROR: ospid=29813, error=942 for statement:
SELECT password
FROM SYS.USER$
WHERE 0=1
kksfbc 16173533: parse err=6550 hd=35185e4278 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
319e277050 30 anonymous block
319e277050 57 anonymous block
PARSE ERROR: ospid=29813, error=6550 for statement:
BEGIN sys.dbms_profiler."146775420110782746251362632012"; END;
kksfbc 16173533: parse err=942 hd=3c142d8600 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
319e277050 67 anonymous block
PARSE ERROR: ospid=29813, error=942 for statement:
SELECT 1 FROM plsql_profiler_data WHERE 0 = 1
Please help.
Regards
SureshHi Suresh,
Apologies for misunderstanding..
Tue Aug 13 14:13:08 2013
kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
PARSE ERROR: ospid=15598, error=1446 for statement:
SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
Assuming you see the above error message in the alert log file, which was your original post, follow the below steps:
1 Get the 'ospid' value from the error
2. Issue the below command:
SQL> select request_id,ORACLE_PROCESS_ID
2 from fnd_concurrent_requests
3 where request_id = 15598;
3. After obtaining the request_id
4, Query it from the front-end using SYSADMIN responsibility
Hopefully this should get you the respective concurrent report/program.
Thanks &
Best Regards, -
Memory error after C042 errors on users database
Hi,
We recently have memory error messages on the POA and on the Client.
The error seemed to follow several C042 errors:
The database function 53 reported error [C042] on user4mn.db
Error: Memory error. Memory function failure [8101] User:
I cannot find any process that is accessing the user database at that time (GWcheck, Backup)
The user also gets a memory error and has to restart the client.
any ideas?On 9/7/2011 2:16 AM, pdjongh wrote:
>
> Hi,
>
> We recently have memory error messages on the POA and on the Client.
> The error seemed to follow several C042 errors:
> -The database function 53 reported error [C042] on user4mn.db
> Error: Memory error. Memory function failure [8101] User:-
>
> I cannot find any process that is accessing the user database at that
> time (GWcheck, Backup)
> The user also gets a memory error and has to restart the client.
>
> any ideas?
>
>
Have you run a full contents and structure check on the user? -
Accessing mysql database from oracle using dg4odbc
I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near '"mdl_user"' at line 1
ORA-02063: preceding 2 lines from MOODLE
My mysql database is utf8 by default. Do I have to use latin1?
It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
Any help is greatly appreciated.
JeffreyThe syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
- Open SQL*Plus
- execute:
DECLARE
ret integer;
c integer;
BEGIN
c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
dbms_output.put_line(ret ||' passthrough output');
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
END;
- Now run your select statement
=> if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC. -
Hi ,
Am getting ORA-01092 error while upgrading database to 10.2.0.1 from 9.2.0.6
I executed the catupgrd.sql successfully and recompiled invaild objects.
After that i tried to startup the database,but am getting the error:
sql>startup
oracle instance started
database mounted
ORA-01092 : Oracle instance terminated. Disconnection forced
I checked alert log file.
I am getting the following errors
Errors in file /u01/......./udump/VIS_ora/7179.trc
ORA-00604: error occurred at recursive SQL level 1
ORA-00607: internal error occurred while making change to a datablock
ORA-00600: internal error code, arguments [4194],[70] ,[39] [ ] []
Error 604 happened during database open . Shutting down database
instance terminated by USER pid =7179
ORA-01092 error Signaled during alter database open
Is there any block corruption? could u please share the solution for these errors?Hi;
You are hitting ORA-00600: error which mean you may need to work oracle support for your issue.Pelase check below note if its not help i suggest rise sr
Troubleshoot an ORA-600 or ORA-7445 Error Using the Error Lookup Tool [ID 153788.1]
Regard
Helios -
Efficient access to database from web services
Hi
I'm implementing a web service interface to a database. The interface allows its clients to perform a series of independent operations which change some values in a database. Each of these operations is an independent web service, but all of them use the same database.
My first approach was to make each service completely self-contained, and have it create its own JDBC connection to access the database. However this doesn't sound very efficient.
I mean, isn't the application server there precisely to provide these types of services to the applications it hosts? So, is it possible to have it manage a pool of connections of some kind and make the web services get their connections from that pool?
Thanks in advance
PedroHi Cemal,
Try the following.
IWDClientUser user = WDClientUser.getCurrentUser();
user.getSAPUser().getUniqueName();
Please check old postings in the forum.
Regards, Anilkumar -
Error while duplicate database from one server to another server
Hi there,
I am practicing duplicate database from one single database server to another server. Hardware and driver path on 2 machines is the same. Here are my steps:
--------------------- Clone site:
1. modify listener.ora with content:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME= orcl)
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
2. stop and start listener again, message show like :
Service “orcl” has 1 instance(s).
Instance “orcl”, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully
3. create pfile from spfile.
4. shutdown and startup nomount with pfile is new pfile create from step 3.
--------------------------------------- Source site
1. modify tnsnames.ora with content like:
VVCOREDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vvcoredb)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.254.1.235) (PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
2. run command from rman like these:
rman> connect target sys@vvcoredb
rman> target database Password:
rman> connect auxiliary sys@orcl
rman> auxiliary database Password:
rman> DUPLICATE TARGET DATABASE to orcl from active database spfile nofilenamecheck;
Then the result show below:
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 17:44:12
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
ORA-01262: Stat failed on a file destination directory
Linux-x86_64 Error: 2: No such file or directory
I don't know what wrong with my pfile? I specify correct my pfile on clone site like this:
orcl.__db_cache_size=1476395008
orcl.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=1342177280
orcl.__sga_target=1979711488
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=436207616
orcl.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area/vvcoredb'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_target=3313500160
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
Please suggest me do i miss some steps when try to duplicate database?
Any suggestions are welcome.
Thanks in advance!
P/s: Sorry for my bad English.Oh god, it worked. Thank you. But i got another problem like this:
duplicate target database to orcl from active database spfile set "db_recovery_file_dest" = "/u01/app/oracle/flash_recovery_area/vvcoredb" nofilenamecheck;
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set db_recovery_file_dest =
''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
sql statement: alter system set db_recovery_file_dest = ''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
contents of Memory Script:
sql clone "alter system set db_name =
''VVCOREDB'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''ORCL'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/vvcoredb/control01.ctl';
restore clone controlfile to '/u01/app/oracle/recovery_area/vvcoredb/control02.ctl' from
'/u01/app/oracle/oradata/vvcoredb/control01.ctl';
alter clone database mount;
executing Memory Script
sql statement: alter system set db_name = ''VVCOREDB'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
Starting backup at 24-SEP-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 18:42:09
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/24/2012 18:42:09
ORA-17628: Oracle error 19505 returned by remote Oracle server
I have a comment that source site doesn't have flash_recovery_area, instead it's name is recovery_area, is it problem?
Edited by: 788420 on Sep 24, 2012 4:44 AM
Maybe you are looking for
-
Names not showing in Messages app, just numbers!
Hi all. I have setup my iPad Mini with Retina Display and synced it with my iCloud account (contacts, calendar etc) but when I use the messages app on the iPad, the contact names don't show, just the phone numbers. My iPhone doesn't have this issue.
-
Hi Philipp, This is in reference to ur post Dated Jan13,2005. "Opening User Defined Fields Form via API". Is it possible for u to give a code snippet. what i'm unable to get is - Check if i can get a handle of the UDF-Form in the Mainform Activate-Ev
-
Movement type 101 vs 131.........
Hi there , As per my understanding we can use both movement type 101 and 131 as goods received from production ..... the only diff is 101 can also be manually done but we cannot post the goods with 131 mvt type manually...... Is there a
-
Fiori getContext Detail page SAPUI5
Hello all I am currently workign on Fiori like App using SAPUI5. I have successfully built the Master page, and on item click I set the context and navigate to Detail page. The context path from Master page is something like "/SUPPLIER("NAME")". The
-
Latency increase with large number of databases
Hello, I'm testing how BDB performs on random updates as the number of databases increases. I'm seeing increase in latency as the number of databases goes up. and strace shows that more time is spent on futex() when there are more databases. Is this