ORA-20998 when entering exec qms_transaction_mgt.open_transaction('PATCH')
When only entering the statement
exec qms_transaction_mgt.open_transaction('PATCH') on the SQL*Plus prompt raises the following error:
ORA-20998: Transaction Failed
ORA-06512: at "HST65.QMS$ERRORS", line 128
ORA-06512: at "HST65.QMS$ERRORS", line 238
ORA-06512: at "HST65.QMS$ERRORS", line 455
ORA-06512: at "HST65.QMS_TRANSACTION_MGT", line 666
ORA-06512: at line 1
How is this possible? No DML was actually executed.
Has anyone an idea?
I'm not real familiar with JHeadstart, I would try reposting this in the JHeadstart forum at JHeadstart
Rob
Team JDev
Similar Messages
-
QMS_TRANSACTION_MGT.OPEN_TRANSACTION
Hi,
In a process of migrating my D2k(Forms 6i) application to Java based Web application through Jdeveloper 9i (9.0.3.x) using the JHeadstart 9.0.4.5, ofcourse all the process is successfully completed and the project is generated. But the time I run the project, in the browser when I do any changes to the existing data that was fecthed from the database or do any inserts and save the changes done, I get the follwoing error:
JBO-29000: ORA-06550:PLS-00201: identifier 'QMS_TRANSACTION_MGT.OPEN_TRANSACTION' must be declared ORA-6550" Line 1, col 7 : PL/SQL:Statement ignored.
I am using Oracle 8.1.7.4.1, with forms 6i and Designer 6i (Ver-4.10)
Can any smart brain tell me the reason for which the above mentioned error is encountered pleaseeee???
Thanks & Regards
PhaniI'm not real familiar with JHeadstart, I would try reposting this in the JHeadstart forum at JHeadstart
Rob
Team JDev -
SQL error 3113 occurred when executing EXEC SQL.
Hi,
We are facing one typical problem, One background is failing regularly with
below dump. as we now got all notes giving information, if database restarted
taking backup, these type of failures occur, but our database is only down for backup once in a week, but it is failing with frequenly.
in this two servers are located in different place, in this job tries to connect
another server to get material statistics.
It is giving some error message in sm21 with
SQL error 3113 occurred when executing EXEC SQL.
work procees in reconnect mode.
all notes saying these types of dump occur when database restared, but this dump
even though database is up.
below is short dump, please can anyone help me from this problem.
ABAP runtime errors DBIF_DSQL2_SQL_ERROR
Occurred on 08.01.2007 at 00:30:28
>> Short dump has not been completely stored. It is too big.
SQL error 3113 occurred when executing EXEC SQL.
What happened?
The error occurred in the current database connection "AZ1".
What can you do?
Note the actions and input that caused the error.
Inform your SAP system administrator.
You can print out this message by choosing "Print". Transaction ST22
allows you to display and manage termination messages, including keeping
them beyond their normal deletion date.
Error analysis
How to correct the error
Database error text........: "ORA-03113: end-of-file on communication channel#"
Triggering SQL statement...: "select mara.groes, mara.brgew, mara.ntgew,
mara.gewei, mara.volum, mara.voleh, mara.mstae, mara.mstde, mara.prdha,
marc.matnr, marc.werks, marc.mmsta, marc.mmstd from sapr3.mara, sapr3.m
where sapr3.mara.mandt = sapr3.marc.mandt and sapr3.mara.matnr =
Internal call code.........: "[DBDS/NEW DSQL]"
Please check the entries in the system log (Transaction SM21).
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"DBIF_DSQL2_SQL_ERROR"
"ZM2431216 " or "ZM2431216 "
"EXTRACT_GENERAL_DATA"
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in th
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error o
or which actions and input led to the error.
System environment
SAP Release.............. "46C"
Application server....... "essceu3"
Network address.......... "172.19.119.198"
Operating system......... "AIX"
Release.................. "5.3"
Hardware type............ "00C7ADBD4C00"
Database server.......... "ukblx176"
Database type............ "ORACLE"
Database name............ "EU3"
Database owner........... "SAPR3"
Character set............ "es_ES.ISO8859-1"
SAP kernel............... "46D"
Created on............... "Jul 9 2006 20:26:33"
Created in............... "AIX 1 5 00447C4A4C00"
Database version......... "OCI_920__OCI_7_API "
Patch level.............. "2257"
Patch text............... " "
Supported environment....
Database................. "ORACLE 8.0.5.., ORACLE 8.0.6.., ORACLE
8.1.6.., ORACLE 8.1.7.., ORACLE 9.2.0.., ORACLE 10.2.0.."
SAP database version..... "46D"
Operating system......... "AIX 1 4, AIX 2 4, AIX 3 4, AIX 1 5, AIX 2 5, AIX 3
5, , System build information:, , LCHN :
841480"
User, transaction...
Client.............. 600
User................ "MPZMMES"
Language key........ "S"
Transaction......... " "
Program............. "ZM2431216 "
Screen.............. "SAPMSSY0 1000"
Screen line......... 6
Information on where termination occurred
The termination occurred in the ABAP/4 program "ZM2431216 " in
"EXTRACT_GENERAL_DATA".
The main program was "ZM2431216 ".
The termination occurred in line 980
of the source code of program "ZM2431216 " (when callin
The program "ZM2431216 " was started as a background jo
Source code extract
009500 mara.ntgew,
009510 mara.gewei,
009520 mara.volum,
009530 mara.voleh,
009540 mara.mstae,
009550 mara.mstde,
009560 mara.prdha,
009570 marc.matnr,
009580 marc.werks,
009590 marc.mmsta,
009600 marc.mmstd
009610 into :w_ops-groes,
009620 :w_ops-brgew,
009630 :w_ops-ntgew,
009640 :w_ops-gewei,
009650 :w_ops-volum,
009660 :w_ops-voleh,
009670 :w_ops-mstae,
009680 :w_ops-mstde,
009690 :w_ops-prdha,
009700 :w_ops-matnr,
009710 :w_ops-werks,
009720 :w_ops-mmsta,
009730 :w_ops-mmstd
009740 from sapr3.mara, sapr3.marc
009750 where sapr3.mara.mandt = sapr3.marc.mandt
009760 and sapr3.mara.matnr = sapr3.marc.matnr
009770 and sapr3.mara.mandt = :p_mandt
009780 and sapr3.mara.matnr = :w_ebs-matnr
009790 and sapr3.marc.werks = :p_owerks
> ENDEXEC.
009810 endform. " extract_general_data
009820 *&
009830 *& Form append_i_ops
009840 *&
009850 * Appends W_OPS to I_OPS
009860 *
009870 form append_i_ops.
009880 append w_ops to i_ops.
009890 endform. " append_i_ops
009900 *&
009910 *& Form extract_material_description
009920 *&
009930 * Extracts a Material Description from the remote database an
009940 * modifies the current record in I_OPS.
009950 *
009960 * >P_SPRAS Language Key
009970 *
009980 form extract_material_description using p_spras.
009990 EXEC sql performing set_langauge.
Contents of system fields
SY field contents..................... SY field contents............
SY-SUBRC 0 SY-INDEX 0
SY-TABIX 1 SY-DBCNT 1
SY-FDPOS 18 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1
Chosen variables
Name.......................... Contents.1........2........3....+..
W_EBS-PRAT4
2
0
W_OPS-GROES
22222222222222222222222222222222
00000000000000000000000000000000
W_OPS-BRGEW #######
0000000
000000C
W_OPS-NTGEW #######
0000000
000000C
regards,
krishnaiah.Hi,
This is usually a SERVER SIDE DATABASE PROBLEM or SQLNET LISTENER (server side) PROBLEM. The client side should initially be ignored and instead the server should be investigated. In rare cases, this can be caused by client
side memory or other resource problem, or a DLL version mismatch, but this is
unlikely.
Enlist the assistance of your DBA. Then reproduce the ORA-3113 error on your
client application. Ask your DBA to look at the database side Alert.log and
trace files and look for ANY activity. Any activity that coincides with your
ORA-3113 will be a clue.
REgards
Vinod -
ORA-20998: Transaction Failed on Headstart Utilities 6.5 installation
Hello,
I am having problem when running insthsu.sql script to install
Headstart utilities 6.5. We are doing client/server approach. The
server is Sun 450 - Oracle 8.1.7.0.0
Designer 6i Release 4 repository was installed on the server.
How far was the installation:
1. Installed HST65 --> No problem found
2. Installed HDEMO65 --> No problem found
3. Failed on the following statement on insthsu.sql script:
... installing Quality Check utilities
execute hsu_qa_app.install;
error message:
hsu65@devl> execute hsu_qa_app.install
BEGIN hsu_qa_app.install; END;
ERROR at line 1:
ORA-20998: Transaction Failed
ORA-06512: at "HST65.QMS$ERRORS", line 128
ORA-06512: at "HST65.QMS_TRANSACTION_MGT", line 814
ORA-06512: at "HSU65.CG$AIS_HSU_UTILITIES", line 39
ORA-04088: error during execution of
trigger 'HSU65.CG$AIS_HSU_UTILITIES'
ORA-06512: at "HSU65.HSU_INSTALL", line 132
ORA-06512: at "HSU65.HSU_QA_APP", line 40
ORA-06512: at line 1
Any idea or direction where should I go from here?
Thanks,
Sanny SubowoAli,
You are running into a bug in the install form. It sees the tables that you imported manually (like the message told you to do), and then complains about them. The best thing to do is change the code in the hsdinst.fmb where the check for existing objects is performed in program units CHECK_USERS:
function hsu_objects_exist
return boolean
is
cursor c_chk
is
select 'x'
from user_objects
where object_name like 'BL_%'
-- or object_name like 'HSU_%'
-- or object_name like 'OMR_%'
So comment out the two lines as indicated above and recreate the fmx.
Kind regards,
Peter -
Get ORA-00600 when using ExecuteXmlQuery and NCLOB column
I am using ODP.NET, I got the following exception:
at Oracle.DataAccess.Client.OracleCommand.XmlHandleException(OracleException
e)
at Oracle.DataAccess.Client.OracleCommand.XmlHandleException(OracleException
e)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlQuery(Boolean wantResult)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlQuery(Boolean wantResult)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlReader()
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlReader()
at Wikipedia.WikipediaDumpXml.Run() in c:\documents and settings\atali\my doc
uments\visual studio projects\datacentersolution\wikipedia\wikipediadumpxml.cs:l
ine 98
ORA-00600: internal error code, arguments: [kole_t2u], [34], [], [], [], [], [],
This is my code for retrieving data from database and save it into xml file.
The "TEXT" column in my select statement is NCLOB. When I leave TEXT column, my query works fine but with it I got exception.
please, I need help for resolving this issue.
// Open the connection
oraConn.Open();
OracleCommand selectCmd= new OracleCommand( String.Empty, oraConn);
selectCmd.XmlQueryProperties.RootTag = "Newspaper";
selectCmd.XmlQueryProperties.RowTag = "Article";
selectCmd.CommandText= "SELECT ID, TITLE, LANG, TEXT FROM NEWSPAPER_DATA WHERE LANG='en' AND ID=1";
selectCmd.XmlCommandType=OracleXmlCommandType.Query;
// execute xml request
XmlReader newsReader= selectCmd.ExecuteXmlReader();
// Read
while(newsReader.Read())
string xmlfilename = row["TITLE"].ToString();
using(TextWriter xmlWriter = new StreamWriter( this.DumpDirectory + xmlfilename + ".xml"))
xmlWriter.Write( newsReader.ReadOuterXml());
// Close the newsReader
newsReader.Close();
oraConn.Close();
oraConn.Dispose();
Atali DAOUDMark is correct, you will need to contact support. ORA-600 errors usually require you to patch the database or at least use a workaround to avoid the error.
-
Ora-12154 when trying to connect to database from fortran application
I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
the connect strng is like
exec sql connect :uidpwd
where uidpwd = username/password@SID
SID and tnsnames connect string are the same.
The fortran (profortran) code is placed in the database server and there are no errors when make is run.
Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
Please help
Thanks and Regards
NitinHi Nitin
Thanks for the helpful! With your point I'm now Pro! Great thanks.
By the way have your seen that?
Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
This may result in:
Inability to start the listener
Services not registered with the listener
Inability to connect to other databases
ORA-12154: TNS:could not resolve service name
Run the following command on each file affected:
$ DIR/FULL filename
An output similar to the following may be displayed:
Record format: Variable length, maximum 255 bytes
Record attributes: Carriage return carriage control
If the output includes the preceding entries, then run the following command:
$ CONVERT/FDL=SYS$INPUT filename filename
RECORD
CARRIAGE_CONTROL CARRIAGE_RETURN
FORMAT STREAM_LF
^Z
Otherwise herewith an interesting metalink note. Doc ID: Note:437597.1
Subject: Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
Hope this will also help you...
Cheers
Hubert -
ORA-02303 when creating database on Exadata using template with BP12
I get ORA-02303 when creating a RAC database on Exadata. Logs indicate that error happened when applying bundle patch BP12 and probably when running following script: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/catsnap.sql
CREATE OR REPLACE TYPE SYS.RewriteMessage AS OBJECT(
Check the following file for errors:
/u01/app/oracle/product/11.2.0.4/dbhome_1/cfgtoollogs/catbundle/catbundle_EXA_ACSES01_GENERATE_2014Dec17_13_07_45.log
Apply script: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/catbundle_EXA_ACSES01_APPLY.sql
Rollback script: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/catbundle_EXA_ACSES01_ROLLBACK.sql
Executing script file...
Processing Oracle Database Packages and Types...
CREATE OR REPLACE TYPE SYS.RewriteMessage AS OBJECT(
ERROR at line 1:
ORA-02303: cannot drop or replace a type with type or table dependents
CREATE OR REPLACE TYPE SYS.ExplainMVMessage AS OBJECT (
ERROR at line 1:
ORA-02303: cannot drop or replace a type with type or table dependents
Anyone experienced the same issue??Metalink search points to few bugs. May be opening a SR is a good idea.
-
ORA-03113 when trying to connect to database
RDBMS Version:: 9.2.0.6
Operating System and Version:: Win2003 Small Business Server
Error Number (if applicable):: ORA-03113
Server Net Version:: 9.2.0.6
Client Operating System and Version:: Solaris10
Client Net Version:: 2.1.3
ORA-03113 when trying to connect to database
I've currently a 7.1.3 client on SUN Solaris (5.10 Generic_118844-26 i86pc i386 i86pc) where I want to connect to the 9.2.0.6 database on a Win2003 Server hardware.
When i try to connect via SQL*Plus (Release 3.1.3.4.1), I get ORA-03113. Looking into the listener resp. alertfile on the server, I can see that the connectiorequest is recognized, but immediately answered by an ORA-0600, producing also trc-files.
listener: 25-MAI-2007 09:37:23 * (CONNECT_DATA=(SID=HTASQL)(CID=(PROGRAM=)(HOST=eklvpa)(USER=sat250))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.233.3)(PORT=32790)) * establish * HTASQL * 0
alert: ORA-00600: internal error code, arguments: [12333], [26], [0], [115], [], [], [], []
Activating traces on the client-side showed the following errors:
-<ERROR>- ntus2err: sd=8, op=1, resnt[0]=511, resnt[1]=2, resnt[2]=0
-<ERROR>- nserror: nsres: id=0, op=65, ns=12541, ns2=12560; nt[0]=511, nt[1]=2, nt[2]=0
-<ERROR>- nsopen: unable to open transport
-<ERROR>- nsprecv: transport read error
-<ERROR>- nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0
-<ERROR>- osnqrc: wanted 1 got 0, type 0
-<ERROR>- osnqper: error from osnqrc
-<ERROR>- osnqper: nr err code: 0
-<ERROR>- osnqper: ns main err code: 12537
-<ERROR>- osnqper: ns (2) err code: 12560
-<ERROR>- osnqper: nt main err code: 507
-<ERROR>- osnqper: nt (2) err code: 0
-<ERROR>- osnqper: nt OS err code: 0
-<ERROR>- osnqsm: send-break: failed to send OOB break...
-<ERROR>- osnqper: error from send-marker
-<ERROR>- osnqper: nr err code: 0
-<ERROR>- osnqper: ns main err code: 12583
-<ERROR>- osnqper: ns (2) err code: 0
-<ERROR>- osnqper: nt main err code: 0
-<ERROR>- osnqper: nt (2) err code: 0
-<ERROR>- osnqper: nt OS err code: 0
-<ERROR>- osnqbr: returning 3113
Can anybody help me in determining the problem ? Is there a systemtic incompatibility in connecting a 7.1.3 client to a 9.2 (or even higher) database ?Thanks for your reply.
But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ? -
I encounter ORA 01012 WHEN execute "SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;" in my ProC program, but under SQLPLUS it is ok. The whole scenarios are:
1. My platform is Solaris 10, Oracle 10.2g / 64bit
2. "alter system archive log current" failure, Oracle complaint about flash_recovery_area full, so I run
delete obsolete;
crosscheck backup;
delete expired backup;
3. Later I issued command "shutdown", oralce had no reponse after long time, so I issued command "shutdown abort" to shutdown the database, and then "startup" the database successfully to "READ WRITE", user application can also accessed the database.
4. One of my ProC program get ORA-01012 when execute SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;
5. But I got no error if I execute "SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL; " using SQLPLUS.
Any suggestion about this problem? blow is my ProC function call.
u_int32_t
proc_GetLastSCN()
char buf[300];
u_int32_t scn=0;
if (proc_ConnectDB() == APP_ERROR)
return APP_ERROR;
memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf),
"select DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER from DUAL");
oraca.orastxtf = ORASTFERR;
EXEC SQL WHENEVER SQLERROR GOTO ora_sqlerror;
EXEC SQL WHENEVER NOT FOUND DO break;
EXEC SQL WHENEVER SQLWARNING CONTINUE;
EXEC SQL PREPARE S5 FROM :buf;
EXEC SQL DECLARE C5 CURSOR FOR S5;
EXEC SQL OPEN C5;
for (;;) {
EXEC SQL FETCH C5 INTO :scn;
EXEC SQL CLOSE C5;
proc_DisconnectDB();
return scn;
ora_sqlerror:
dyn_error("ORACLE error --proc_GetLastSCN\n");
EXEC SQL CLOSE C5;
proc_DisconnectDB();
return 0;
int32_t
proc_ConnectDB()
/* Declare variables. No declare section is needed if MODE=ORACLE. */
VARCHAR username[DB_MAX_NAME_LEN];
/* VARCHAR is an Oracle-supplied struct */
VARCHAR password[DB_MAX_NAME_LEN];
int32_t ret = APP_OK;
strncpy((char *) username.arr, gateinfo.szSrvLogin, sizeof(gateinfo.szSrvLogin));
username.len = (unsigned short) strlen((char *) username.arr);
strncpy((char *) password.arr, gateinfo.szSrvPassword, strlen(gateinfo.szSrvPassword));
password.len = (unsigned short) strlen((char *) password.arr);
EX_SCREEN_INIT();
EXEC SQL WHENEVER SQLERROR GOTO ora_sqlerror;
EXEC SQL CONNECT :gateinfo.szSrvLogin IDENTIFIED BY :gateinfo.szSrvPassword;
return ret;
ora_sqlerror:
errlog(ELOG_ERROR, "proc_ConnectDB@Failed to connect to %s!", gateinfo.szHistSrv);
sql_error("ORACLE error proc_ConnectDB --\n");
ret = APP_ERROR;
return ret;
}01012, 00000, "not logged on"
// *Cause:
// *Action:use COPY & PASTE so we can see what you do & how Oracle responds. -
Getting ORA-01403:, when it shouldn't
Greetings, i apologize beforehand for my spelling, name(takes 6 hours to change) and the headache you migth get, however,
i bring you the following code, and test results:
------Procedure wich throws the error-------
create or replace
procedure P_COLEGAS(x in number) as
ctipo varchar2(20);
asd varchar2(20);
cursor curnombre is
select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo and elemento.ciudad=asd);
begin
select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x and elemento.id_elem=x;
for blah in curnombre loop
DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
end loop;
end;
-what i get when executing the procedure-
Error que empieza en la línea 1 del comando:
exec p_colegas(19)
Informe de error:
ORA-01403: no data found
ORA-06512: at "BD00.P_COLEGAS", line 9
ORA-06512: at line 1
01403. 00000 - "no data found"
*Cause:
*Action:-----------------------------------------------------------
-----------------the real problem--------------------
if in that procedure i were to write
(1)
select unidad.tipo into ctipo from unidad where unidad.id_elem=x;(2)
select elemento.ciudad into asd from elemento where elemento.id_elem=x;instead the single query i wrote, we get the following:
(1) works wonderfull, only gets the error when there are no matches for x.
(2) throws the error i showed before.
however when i do the following query in the worksheet and execute it:
(3)
select elemento.ciudad from elemento where elemento.id_elem=x;i get what i expected to get 1 row 1 column.(yes it has data)
note: in (3) the only difference is that i remove the into clause, and x is the same number i used when i execute the procedure.
--------------------the question------------------------
why in the procedure, the query (2) fail to fetch the data, the same data wich the query(3) does not fail to fetch?
i'm getting ORA-01403, when i shouldn't?
is there a work around to this problem?
--------------------what i try------------------------------
nested the query with it's own error handle exception, getting the same results, just catches the error with a different handling.
tool used: sql developer
-Example data--
tested the procedure with the following example data in a brand new workspace getting the same error.
-- DDL for Table ELEMENTO
CREATE TABLE "ELEMENTO"
( "ID_ELEM" NUMBER,
"CIUDAD" VARCHAR2(20),
"TIPO" CHAR(1),
"X" NUMBER,
"Y" NUMBER,
"FECHAHORA_CREACION" TIMESTAMP (6)
-- DDL for Table UNIDAD
CREATE TABLE "UNIDAD"
( "ID_ELEM" NUMBER,
"PORCENTAJE_SALUD" NUMBER,
"NOMBRE" VARCHAR2(20),
"TIPO" VARCHAR2(20)
REM INSERTING into ELEMENTO
SET DEFINE OFF;
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (12,'Infernalia','U',10,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (15,'Infernalia','U',10,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (19,'Infernalia','U',15,9,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (23,'Infernalia','U',16,8,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (27,'Infernalia','C',15,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (52,'Humania','U',26,10,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (58,'Humania','U',24,9,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (62,'Humania','U',27,11,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (64,'Humania','C',25,8,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (78,'GruntVille','U',47,32,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (84,'GruntVille','U',42,28,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (89,'GruntVille','U',43,29,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (91,'GruntVille','C',44,37,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (29,'Infernalia','C',16,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (90,'GruntVille','U',49,36,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
REM INSERTING into UNIDAD
SET DEFINE OFF;
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (12,100,'Grang','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (15,100,'Krout','Médico');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (19,100,'Warf','Obrero');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (23,100,'Puaj','Obrero');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (52,100,'Marcelus','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (58,100,'Claudius','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (62,100,'Arturius','Obrero');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (78,100,'Klaknot','Médico');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (84,100,'Staisht','Médico');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (89,100,'Bjorkson','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (90,100,'Sknot','Médico');
-- Constraints for Table ELEMENTO
ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_CHK1_TIPO" CHECK (TIPO IN ('U', 'C')) ENABLE;
ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
ALTER TABLE "ELEMENTO" MODIFY ("ID_ELEM" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("CIUDAD" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("TIPO" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("X" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("Y" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("FECHAHORA_CREACION" NOT NULL ENABLE);
-- Constraints for Table UNIDAD
ALTER TABLE "UNIDAD" MODIFY ("ID_ELEM" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" MODIFY ("PORCENTAJE_SALUD" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" MODIFY ("NOMBRE" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" MODIFY ("TIPO" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
-- Ref Constraints for Table ELEMENTO
-- Ref Constraints for Table UNIDAD
ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_ELEMENTO_FK1" FOREIGN KEY ("ID_ELEM")
REFERENCES "ELEMENTO" ("ID_ELEM") ENABLE;
/Edited by: 975362 on 06-12-2012 04:47 AM
Edited by: BluShadow on 06-Dec-2012 12:51
added {noformat}{noformat} tags for readability of code/data. Please read {message:id=9360002} and learn to do this yourself in future.
Edited by: 975362 on 06-12-2012 05:44 AM
added example data.Oops, I mi9ssed table ELEMENTO has column X. When you use:
where unidad.id_elem=x and elemento.id_elem=x;column names take precedence over PL/SQL variables wnd X is resolved as table ELEMENTO column X. not as PL/SQL procedure parameter X. Change PL/SQL procedure parameter name:
SQL> create or replace
2 procedure P_COLEGAS(x in number) as
3 ctipo varchar2(20);
4 asd varchar2(20);
5
6 cursor curnombre is
7 select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo
and elemento.ciudad=asd);
8
9 begin
10 select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x
and elemento.id_elem=x;
11 for blah in curnombre loop
12 DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
13 end loop;
14 end;
15 /
Procedure created.
SQL> exec p_colegas(19)
BEGIN p_colegas(19); END;
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "SCOTT.P_COLEGAS", line 9
ORA-06512: at line 1
SQL> create or replace
2 procedure P_COLEGAS(p_x in number) as
3 ctipo varchar2(20);
4 asd varchar2(20);
5
6 cursor curnombre is
7 select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo
and elemento.ciudad=asd);
8
9 begin
10 select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=p_
x and elemento.id_elem=p_x;
11 for blah in curnombre loop
12 DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
13 end loop;
14 end;
15 /
Procedure created.
SQL> exec p_colegas(19)
PL/SQL procedure successfully completed.
SQL> SY. -
ORA-28239 when truing to register location
Hello Forum,
Could you please help me avoiding ORA-28239 when registering a location?
I keep getting ORA-28239 registering any location type (file, database, ...).
I'm using OWB 10.2 on Red Hat linux 4 with a 10.2 database.
Thank you!
Ruben.
From the (nice new) Messages log:
Sat May 27 23:27:22 CEST 2006
ORA-29532: Java call terminated by uncaught Java exception: oracle.jdbc.driver.OracleSQLException: ORA-28239: no key provided
ORA-06512: at "SYS.DBMS_OBFUSCATION_TOOLKIT_FFI", line 21
ORA-06512: at "SYS.DBMS_OBFUSCATION_TOOLKIT", line 115
ORA-06512: at "OWB_REPOS_OWNER.WB_RT_SERVICE_CONTROL", line 268
ORA-06512: at "OWB_REPOS_OWNER.WB_RT_SERVICE_CONTROL", line 303
ORA-06512: at line 1
ORA-06512: at "OWB_REPOS_OWNER.WB_RTI_UTIL", line 57
ORA-06512: at "OWB_REPOS_OWNER.WB_RT_STORE_REGISTRATION", line 233
ORA-06512: at line 1These are good suggestions above. But shortly after I last posted I realized what my problem was. I have 2 node RAC on solaris x86-64. And after installing OWB software on the second node, I discovered that there was no rtrepos.properties file in the second node and the said file on the first node was empty.
SQL> exec wb_rti_util.set_key; <== I am curious if this is supposed to 'create' the key found in rtrepos.properties?
Somehow, my initial install was not without error. I went back to deinstall and installed anew. Once the rtrepos.properties file appeared across both nodes, everything worked fine...
Until, we hit yet another problem (totally unrelated)!
Message was edited by:
dalonso -
Lock User when enter password in wrong 3 times
Hi,
I user oracle E-Business Suite 11i .
I want to Lock User(Disable Account) when enter password in wrong 3 times.
Thanx
Rafeek
Edited by: reemax on Apr 20, 2010 4:19 AMHi,
you can set the profile value FAILED_LOGIN_ATTEMPETS to 3 to restrict that wrong password entry as folows
sql>ALTER PROFILE default LIMIT failed_login_attempts 3;
--Rathina -
Remote app in iOS 7 doesn't bring keyboard when entering text.
I tried to use the remote app with my new iPad air with iOS 7 with and when I tried to make a search for a movie it won't bring the keyboard as before when entering text. The funny thing is that I have an old iPod 4th gen with iOS 6, and that one still brings the keyboard every time text needs to be entered, even still has the option to hide and bring out the keyboard. Is this feature gone forever in iOS 7? Or is missing and will be added later?
This is now fixed. The remote has two modes. It starts with an interface similar to iTunes to play music or videos from your library, on the top right side it has a keyboard (mine appeared greyed out and I was unable to activate it, but now works), and an axis which brings the other remote everyone is familiar with to select the icons on the tv screen. The other remote now has a small keyboard icon on the top right which didn't used to have before. I don't know what I did to activate it, however, it won't bring the keyboard automatically like before. Another way to bring the keyboard, if yours still stuck, is to highlight any of the letters in the menu, and swipe from right to left, the highlight will cursor will hide, swipe again and that brings up the keyboard. How? Why? Still a mystery to me, but I happy I can use remote again.
-
Why can't I use a backslash on my Iphone when entering my email address
Why can't I use a backslash on my Iphone when entering my email address
Best thing to do is go to your email, hit reply on any email and find the backslash on your keyboard. Select the Backslash and then cut/copy it into your mail settings or wherever you want to use it.
-
ORA-19007 when coping a table with an xml type in it to a new schema in the
ORA-19007 when coping a table with an xml type in it to a new schema in the same database.
Hi all,
When I copy a table with an xml type in it to a new schema in the same database I get an ora-19009.
The setup is as follows I have a schema a with table TABLE_WITH_XMLTYPE where data is:
CREATE
TABLE TABLE_WITH_XMLTYPE
FOLDER_ID NUMBER (10, 0) NOT NULL,
SEARCH_PROPERTIES XMLTYPE ,
CONSTRAINT TABLE_WITH_XMLTYPE PK PRIMARY KEY (FOLDERID) USING INDEX
XMLTYPE COLUMN SEARCH_PROPERTIES XMLSCHEMA
"http://xxxxxxx.net/FolderProperties.xsd" element "FolderProperties"
VARRAY SEARCH_PROPERTIES."XMLDATA"."PROPERTIES"."PROPERTY" STORE AS TABLE
PROPERTY_TABLE
(PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX)) ORGANIZATION INDEX OVERFLOW
Both schemas have the following xml schema registered as a local xml schema
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://xxxxxxx.net/FolderProperties.xsd',
SCHEMADOC =>
'<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb"
xdb:storeVarrayAsTable="true">
<xs:element name="FolderProperties"
type="FolderPropertiesType"
xdb:defaultTable="FOLDER_SEARCH_PROPERTIES" />
<xs:complexType name="FolderPropertiesType" xdb:SQLType="FOLDERPROPERTIES_T">
<xs:sequence>
<xs:element name="FolderID" type="FolderIDType" minOccurs="1" xdb:SQLName="FOLDER_ID"/>
<xs:element name="Properties" type="PropertiesType" xdb:SQLName="PROPERTIES"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PropertiesType" xdb:SQLType="PROPERTIES_T">
<xs:sequence>
<xs:element name="Property" type="PropertyType" maxOccurs="unbounded"
xdb:SQLName="PROPERTY" xdb:SQLCollType="PROPERTY_V"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PropertyType" xdb:SQLType="PROPERTY_T">
<xs:sequence>
<xs:element name="DateValue" type="DateType" xdb:SQLName="DATE_VALUE"/>
<xs:element name="NumValue" type="NumType" xdb:SQLName="NUM_VALUE"/>
<xs:element name="StringValue" type="StringType" xdb:SQLName="STRING_VALUE"/>
</xs:sequence>
<xs:attribute name="Name" xdb:SQLName="NAME" xdb:SQLType="VARCHAR2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="FolderIDType">
<xs:restriction base="xs:integer"/>
</xs:simpleType>
<xs:simpleType name="DateType">
<xs:restriction base="xs:dateTime"/>
</xs:simpleType>
<xs:simpleType name="NumType">
<xs:restriction base="xs:decimal"/>
</xs:simpleType>
<xs:simpleType name="StringType">
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:schema>',
LOCAL => TRUE,
GENTYPES => TRUE,
GENTABLES => FALSE);
END;
when I try to do the following insert:
insert into schemaB.TABLE_WITH_XMLTYPE ( FOLDER_ID, SEARCH_PROPERTIES)
select FOLDER_ID, SEARCH_PROPERTIES from schemaB.TABLE_WITH_XMLTYPE;
I’ll get an ora-19007.
Can some one point me in the right direction how to solve this error.
Thanks Roelof.Who did you create the second table, in other words, how did you COPY the table as you said...
If you created the second table via a CTAS (create table as select) then you will have created a table that is not the same as the original one. AFAIK I have once created an enhancement request for this after discovering that JDeveloper, for example, creates a "copy" via a CTAS which creates the wrong structure. Double check via package DBMS_METADATA.
SQL> set long 1000000
SQL> select DBMS_METADATA('TABLE','TABLE_WITH_XMLTYPE','SchemaA') from dual;
SQL> select DBMS_METADATA('TABLE','TABLE_WITH_XMLTYPE','SchemaB') from dual;If you have got two different tables, than Mark's solution should help.
M.
Edited by: Marco Gralike on Feb 15, 2009 11:16 AM
Maybe you are looking for
-
Where can I get instructions as to how to use my printer for photos. There is a small tray and I have inserted the oorrect paper. I attempted to print a photo on a letter size sheet - and I indicated the size - it came out only as half a photo. So
-
Reports/campaign execution
Hi I am new to this CRM ,Could some body give me idea about which all the reports we use in CRM and campaign execution configuration steps. Thanks in advance Padma
-
A problem with the File adapter receiver
Hi people, In the Integration Monitoring the system represent this problem: File adapter receiver channel Mainframe_FA_StructureAch_CC_RC is not initialized. Unable to proceed: null Any body can help me!! Thanks!!
-
How do I perform two particular operations in iPhoto v9.6.1?
I just upgraded from iPhoto version 9.5.1 to version 9.6.1 in Yosemite OS. For whatever reason there is no longer a full-screen button in the upper right hand corner of the iPhoto window! I used that a lot in v9.5.1 to increase the size of the images
-
Employee Record Remains Locked for a While After BAPI_EMPLOYEE_DEQUEUE
Hi All, I'm exposing the following BAPI's: I'm calling the following functions (through the webservice) in the following sequence: BAPI_EMPLOYEE_ENQUEUE BAPI_PERSDATA_CHANGE BAPI_EMPLOYEE_DEQUEUE The ENQUEUE and CHANGE operations work fine, m runnin