IMP product ora-00900 error SQLPLUS and Page of SQL commands
HelloI can't import of Cognos samples .dmp files via IMP.
ORA-00900 error is the result.
SQLPLUS 'help imp;' shows sp2-0172: no help on this command.
Customer SQLPlus is 10.2.0.1.0
I can't imp work?
Thank you
Georg
Edited by: user1919026 the 04.02.2011 04:36
What command you trying to run?
Yes, imp is a command line utility, it was not run in sqlplus... If you are under windows, a command box (start/run/cmd) is the starting point, not a sqlplus session...
Tags: Database
Similar Questions
-
Version 4.1.1.00.23
Hello
I have a HTML box that contains Page elements for the user to select values to add records.
The Page is a Page of PL/SQL process that is triggered by a button.
I put a Massage of success in the area of Messages on the process of Page in the properties of the success and error, but there are not displayed.
I also tried: apex_application.g_print_success_message: = ' we inserted records. " At the end of the process.
It is on the theme: 13. Blue-grey
How can I get the message to display?
Can what additional information I give?
Thank you
Joe
Design has changed direction to another page.
The message is displayed correctly.
Thank you
Joe
-
reporting invalid-ORA-00900 error while creating a function
Hello
can someone guide me to what is doing the worng...
error! sql statement not valid 00900 - ORA-.
your help is greatly appreciated.
FUNCTION test_irc (num in NUMBERS, varsql IN VARCHAR2)
RETURNS the NUMBER IS varSTMT VARCHAR2 (32767): = NULL;type of v_key_type temp2_irc.key_type %;
v_key_type1 temp2_irc.key_type1%type;
BEGIN
INSERT INTO temp2_irc (key_type, key_type1)
VALUES(v_key_type,v_key_type1);
RETURN 1;EXCEPTION WHEN OTHERS THEN
dbms_output.put_line ('down in test');
dbms_output.put_line (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END test_irc;temp2_irc / / desc:
KEY_TYPE varchar2 (1 byte),
key_type1 varchar2 (1 byte)
If you create a database function, you must include the keyword of CREATE or REPLACE
for example
Create the FUNCTION replace or test_irc (num in NUMBERS,
varsql IN VARCHAR2) RETURN NUMBER IS
varSTMT VARCHAR2 (32767): = NULL;
v_key_type temp2_irc.key_type%type;
v_key_type1 temp2_irc.key_type1%type;
BEGIN
INSERT INTO temp2_irc (key_type, key_type1)
VALUES(v_key_type,v_key_type1);RETURN 1;
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line ('down in test');
dbms_output.put_line (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END test_irc; -
ORA-00205: error in identifying controlfile
Hello everyone,
I have spend 10.2.0.2 to 11.2.0.4, when I start my DB I ora-00205: error in identifying controlfile
SQL > startup pfile = upgrade ' / DISK3/app/oracle/product/11.2.0/db1/dbs/initPROD.ora'
ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated.
ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated.
ORA-25138: PLSQL_NATIVE_LIBRARY_DIR initialization parameter has been deprecated
ORA-25138: PLSQL_NATIVE_LIBRARY_SUBDIR_COUNT initialization parameter has been deprecated
ORA-32006: LOG_ARCHIVE_START initialization parameter has been deprecated.
ORACLE instance started.
Total System Global Area 2142679040 bytes
Bytes of size 1365828 fixed
486541500 variable size bytes
1627389952 of database buffers bytes
Redo buffers 27381760 bytes
ORA-00205: error in the identification of control files, see log alerts for more information
SQL > show parameter control_files;
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
control_files string DISK11/d01/oracle/PROD/db/apps_st/data/cntrl01.dbf,
/ DISK11/d01/oracle/PROD/db/apps_st/data/cntrl02.dbf,.
/DISK11/D01/Oracle/prod/DB/apps_st/data/cntrl03.dbf
any help
What happened when you checked the log of alerts for more information? What did you find? These files exist? .dbf is a much more commonly associated with a data file - extension doesn't want not to say, he cannot be a control file, but that does not match a naming convention, I have never seen used.
-
Hello-
I am facing the following question when I try to connect by using the command prompt sqlplus for Oracle 11.2.0.3 DB installed and running on HP - UX.
The password is not all special characters & I also tried with the double quotes which did not work.
Following want to work with username/password@TNSNAME because I'm trying to get my application to connect to the database, the schema mentioned because it uses the jdbc connection with the connection as (username/password@TNS:1521) string.
C:\Users>sqlplus username/Pa55w0rd@DBNAME; SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 10 07:21:43 2016 Copyright (c) 1982, 2010, Oracle. All rights reserved. ERROR: ORA-12154: TNS:could not resolve the connect identifier specified Enter user-name: C:\Users>tnsping DBNAME TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2 016 07:21:57 Copyright (c) 1997, 2010, Oracle. All rights reserved. Used parameter files: C:\app\product\11.2.0\client_2\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = server.domain) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DBNAME))) OK (50 msec) C:\Users>sqlplus username@DBNAME SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 10 07:22:05 2016 Copyright (c) 1982, 2010, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> show user USER is "username" SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options C:\Users>
content content of tnsnames.ora & sqlnet.ora:
DBNAME = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = server.domain) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DBNAME) ) )
# sqlnet.ora Network Configuration File: C:\app\product\11.2.0\client_2\network\admin\sqlnet.ora # Generated by Oracle configuration tools. # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. #SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Thanks in advance
Hello
sqlplus username/Pa55w0rd@DBNAME;
Try it without the semicolon;
sqlplus username/Pa55w0rd@DBNAME
Regards Thomas
-
I'm getting "ORA-00900: invalid SQL statement" error. ?
I installed oracle 11 GR 2. and 'DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A','USER1 ','USER2 ')"to see the result as below, but I'm" ORA-00900: invalid SQL statement "error. Any idea?
I use:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL > desc user1.tbl_a
Name Null? Type
----------------------------------------- -------- ----------------------------
FIELD_A1 NOT NULL NUMBER
FIELD_A2 VARCHAR2 (20)
FIELD_A4 NOT NULL NUMBER (5.2)
FIELD_A5 VARCHAR2 (10)
FIELD_A6 NOT NULL NUMBER (2)SQL > desc user2.tbl_a
Name Null? Type
----------------------------------------- -------- ----------------------------
FIELD_A1 NOT NULL NUMBER
FIELD_A2 VARCHAR2 (50)
FIELD_A3 DATE
FIELD_A4 NUMBER (5.2)
FIELD_A5 NOT NULL VARCHAR2 (10)SQL > select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') of double
expected result:
DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A', 'U1', 'U2')
--------------------------------------------------------------------------------
ALTER TABLE 'U1 '. "" ADD TBL_A "(DATE OF THE"FIELD_A3")
ALTER TABLE 'U1 '. "" TBL_A "DROP ("FIELD_A6")
ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ("FIELD_A2' VARCHAR2 (50))
ALTER TABLE 'U1 '. "" TBL_A ' CHANGE ("FIELD_A4" NUMBER (5.2) DEFAULT 0)
ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A4' NULL)
ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A5' ACTIVATE NOT NULL)Thanks for the reply rp,
I got the result using "select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') from dual"
-
ORA-12505 error after installation listener properly and tnsnames.
Hello.
I have a very common problem. I can't connect using the tnsnames on Windows 2003 server.
Facts.
1 Tnsnames.ora file is set correctly.
2 Listener.ora file is set correctly.
3 - tnsping works without any problem.
4 - Windows service is running.
However, I get this error.
C:\Documents and Settings\sabreadm > sqlplus lps/first1@lm3dprd1
SQL * more: Release 10.2.0.1.0 - Production on Wednesday 24 June at 12:32:26 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12505: TNS:listener is not currently of SID given in connect
descriptor of
Enter the user name:
ERROR:
ORA-01017: name of user and password invalid. connection refused
content of the Listener.ora file
-------------------------------
listener.ora # Network Configuration file: D:\Apps\oracle\network\admin\listener.ora
# Generated by Oracle configuration tools.
TRACE_LEVEL_LISTENER = USER
TRACE_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
LOG_FILE_LISTENER = listener.log
LOG_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
TRACE_FILE_LISTENER = listener.trc
MAX_REG_CONNECTIONS_LISTENER = 3000
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.58.44)(PORT = 1521))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = lm3dtst1)
(ORACLE_HOME = D:\Apps\oracle)
)
(SID_DESC =
(SID_NAME = lm3dprd1)
(ORACLE_HOME = D:\Apps\oracle)
)
)
content of the tnsnames.ora file.
-----------------------------------
tnsnames.ora # Network Configuration file: D:\Apps\oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
lm3dtst1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.58.44)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = lm3dtst1
(GLOBAL_NAME = lm3dtst1)
)
)
lm3dprd1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.58.44)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = lm3dprd1
(GLOBAL_NAME = lm3dprd1)
)
)
Any advice will be highly appreciated.
Thank you.
Alex.Alex,
Next time when you post code or output or no matter what configuration, place them between.
tags to preserve formatting \
Your code or output
\
h4. Anyway, modify your tnsnames.ora file on your client machine and add this
lm3dprd1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.58.44)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = lm3dprd1)
(INSTANCE_NAME = lm3dprd1)
)
)Regards OrionNet
-
Error: 0xc000012f and the KERNEL DATA PAGE FAULT
My son has a laptop of game. Since last week, he experienced extreme problems. A constant if the following errors: 0xc000012f and the KERNEL DATA PAGE FAULT. Although I'm not technologically savvy, I tried the obvious in running virus scan and visiting different communities for troubleshooting tips. When you run the antivirus (paid service) analysis, the system hangs and the system restarts. I attended ASUS website in the hope of getting more advice than to have to provide access to the laptop of my son to a technician who gave me some insurance for the better part of 45 minutes that he help and troubleshooting problems. He highlighted a very detailed chart of downtown action (reliable?), which looked pretty serious. Suffice it to say, the conversation ended when he asked a one-time fixed fee of $200. When I refused, he went to stop everything. I would simply like to take any action that will further damage the laptop of my son. I paid $3K for this system. Is someone can you please help me solve these problems? I was going to buy a registry cleaner but was informed in an online community chat room not to do so that these products are not reliable. Thank you all in advance for your review and taking the time to help me.
Original title: need assistance immediately please.
We need the log files themselves (called a DMP files) because they contain the only record of the sequence of events that led to the accident, what drivers have been loaded, and what has been loaded.
Please follow our instructions to find and download the files, we need to help you fix your computer. They can be found hereIf you have any questions regarding the procedure, please ask
I find the files DMP prayed and tried their zip. I received the following: file not found or no read permission.
I took it to a repair shop for yesterday I had to argue that these issues were well beyond my skill level. The owner of the store insisted that the 'hard drive' was "fried". It was agreed to replace the necessary parts (gave me a "Crucial - M4 Solid State Drive - 128 GB), this is the info on the box, to replace my 750Go son. He said that, even if was less "room" it would "fly". The original price was $ 200 and climbing! Give me the question my faith in humanity at this time. Is not relevant to the prey on someones lack of knowledge. You and the other hand, all those who try to make a difference... who are trying to help is welcomed. I wish offered troubleshooting would come to maturity. Nonetheless, I humbly thank you for your support and follow-up in this case.
I took it to a repair shop for yesterday I had to argue that these issues were well beyond my skill level. The owner of the store insisted that the "hard drive"was"French fries".» It was agreed to replace the necessary parts (gave me a "Crucial - M4 Solid State Drive - 128 GB - INFORMATION ON LISTED), to replace my 750Go son. He said that even if it was less "room" it would "fly". The original quoite was $ 200 and climbing! Give me the question my faith in humanity at this time. Seems very inappropriate to prey on someones lcak of knowledge. You on the other hand and those who try to make a difference... who are trying to help, should be commended. I wish offered troubleshooting would come to maturity. Nonetheless, I humbly thank you for your support and follow-up in this case.
-
connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent
Hi all
I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.
I want to connect to MySQL. I do the following
Configure Listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(= Extproc PROGRAM)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(SID_NAME = ORCL)
)
(SID_DESC =
(SID_NAME = mysql)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(PROGRAM = HSODBC)
(ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
)
Tnsnames.ora configuration
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
MySQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
)
(HS = OK)
)create file initodbc.ora in the folder hs
HS_FDS_CONNECT_INFO = mysql
HS_FDS_TRACE_LEVEL = OFF
Restart the listner
tnsping
C:\users\administrator > tnsping mysql
AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
015 13:02:52Copyright (c) 1997, 2010, Oracle. All rights reserved.
Use settings files:
C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
(PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
OK (0 msec)Create the connection odbc for Unicode
the test is successful
now, I create the dblink
create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";
then try to select from a table inside the MySQL database
SQL > select * from appeal@mysql;
Select * from appeal@mysql
*
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of MYSQL
How could I solve this problem?
Thank you.
Hello
I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows. You can not install the 32-bit on WIndows 64-bit HSODBC.
Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database. HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.
Kind regards
Mike
-
I built a site of e-commerce in Muse and linked with BC. The site works fine, but it needs a search function.
I added the "Site Search" form successfully and it was working fine, but the results page does appear as a list. After some research, I found that the 'Search' module product is what I need. I've added to the site, and I see that I have followed each step of the tutorial correctly, but the results page (which is a redirect in the code) will not work. He brings just the error message:
Page not found
We could not find the requested Web Page. This is either because:
- There is an error in the address or link.
- You have entered the address or link incorrectly.
Click here to return to our Home Page.
The search code is added to the header of a page in Muse, and module results {module_productresults} is added to the page of redirection in Muse.
The site is www.thecookshopross.com, and the search box is currently in the header of the 'Sale' page while I'm working on it.
Can need a very urgent correction - anyone help?
Thank you
Karine
Hi Mika,
Check this screenshot
Change the PageID = / Search - Results.html to ID = / Search - Results.html
Let me know if you have any question.
-
Process page returns ORA-06550: error
APEX 4.1
Oracle 11g
Analysis of schema: MDM_APEX
Data tables: MDM_DATA
Creating a page process to take several pieces of an item in the list and insert it into a table.
I use a function that works in the database (when it is called by SQL + and the toad) but get the following error message when you try to create the page APEX process:
1 error has occurred
ORA-06550: line 3, column 22: PL/SQL: ORA-00904: "UTIL". ' ' SPLIT ': invalid identifier ORA-06550: line 2, column 1: PL/SQL: statement ignored
I have granted running the privs to APEX_040100 and MDM_APEX on the packaging. This function works in another application, but not to recognize in this application.
Google search finds no solutions used for this question with regard to APEX. Suggestions on how to recognize the function of the APEX?
Thank you
Tim
< code >
Process page:
INSERT INTO MDM_DATA. REF_CMR (STORE_CD)
(SELECT * FROM TABLE (UTIL.) SPLIT (:P400_STORE_LIST,':')));
< code >
< code >
CREATE OR REPLACE PACKAGE MDM_DATA. UTIL
AS
SPLIT FUNCTION (P_LIST VARCHAR2, P_DEL VARCHAR2: = ',') SPLIT_TBL RETURN PIPELINE;
Etc...
End UTIL;
CREATE OR REPLACE PACKAGE BODY MDM_DATA. UTIL
AS
SPLIT FUNCTION (P_LIST VARCHAR2, P_DEL VARCHAR2: = ',') SPLIT_TBL RETURN PIPELINE
AS
L_IDX PLS_INTEGER;
L_LIST VARCHAR2 (32767): = P_LIST;
L_VALUE VARCHAR2 (32767).
BEGIN
LOOP
L_IDX: = INSTR (L_LIST, P_DEL);
IF L_IDX > 0
THEN
LINE OF CONDUCT (SUBSTR (L_LIST, 1, L_IDX - 1));
L_LIST: = SUBSTR (L_LIST, L_IDX + LENGTH (P_DEL));
ON THE OTHER
PIPE ROW (L_LIST);
EXIT;
END IF;
END LOOP;
RETURN;
EXCEPTION
WHILE OTHERS THEN
NULL;
END SPLIT;
ETC...
End util;
< code >
INSERT INTO MDM_DATA. REF_CMR (STORE_CD)
(SELECT * FROM TABLE (MDM_DATA. )) UTIL. SPLIT (:P400_STORE_LIST,':')));
-
I get these errors after updating, could you please review and advise.
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j000_8224.trc file:
ORA-12012: error on auto work 2160513
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:02:55 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160514
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:03:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160514
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:03:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160513
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:04:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160514
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:04:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160513
ORA-06576: not a function or a procedure valid name
Checked the DB links are working properly
DB DB link: where I get these errors
SQL > select count (*) from [email protected] ;
COUNT (*)
----------
61233
the ERP DB
APPS-VAL1 > select count (*) from [email protected] ;
COUNT (*)
----------
439
If I try to run it manually, I am getting error below.
DBMS_SCHEDULER BEGIN. RUN_JOB ("SCHEDULE_REQUEST_DEQUEUE", TRUE); END;
*
ERROR on line 1:
"ORA-27475: ' XXSAP. SCHEDULE_REQUEST_DEQUEUE' must be work
ORA-06512: at "SYS." DBMS_ISCHED", line 150
ORA-06512: at "SYS." DBMS_SCHEDULER', line 441
ORA-06512: at line 1
SQL > SELECT master, job_name, error # FROM dba_scheduler_job_run_details
WHERE error # LIKE '% 6576% '; 2
OWNER
------------------------------
JOB_NAME
--------------------------------------------------------------------------------
ERROR #.
----------
SYS
SCHEDULING_LOCATION_UPDATE
6576
SYS
SCHEDULE_REQUEST_DEQUEUE
6576
OWNER
------------------------------
JOB_NAME
--------------------------------------------------------------------------------
ERROR #.
----------
SYS
SCHEDULE_REQUEST_DEQUEUE
6576
SQL > select job, what from dba_jobs where broken = 'Y' or chess > 0;
no selected line
LOG_DATE STATUS JOB_NAME
--------------------------------------------------------------------------- ------------------------------ ----------------------------------------
23 JUNE 13 11.37.53.128960 AM - 07:00 IS NOT SCHEDULING_NOTIFICATION_UPDATE
23 JUNE 13 11.37.54.619584 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.38.53.728264 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.39.53.830833 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.40.53.929791 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.41.54.047578 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.42.53.273320 AM - 07:00 IS NOT SCHEDULING_NOTIFICATION_UPDATE
23 JUNE 13 11.43.53.529692 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.44.53.628774 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.45.53.739038 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.46.53.848009 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
LOG_DATE STATUS JOB_NAME
--------------------------------------------------------------------------- ------------------------------ ----------------------------------------
23 JUNE 13 11.47.57.220078 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.48.53.329549 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
3324 selected lines.
SQL > 1
1 * Select log_date, status, JOB_NAME from dba_scheduler_job_run_details where status = 'in FAILURE. "
Thank you
Vincent
I suggest you to move (i.e. rebuild) jobs in the XXSAP scheme rather than use the SYS schema. In this way, you can run "BEGIN DBMS_SCHEDULER. RUN_JOB' to XXSAP correctly.
Hemant K Collette
-
error SQL ORA-00900: invalid SQL statement
Hi all
I'm new to sql and I'm trying to solve this problem, I have here.
When I run this query (1) I get this message: ORA-00900: invalid SQL statement
Query: 1
WITH t1
AS (SELECT CID,
TYPE,
TO_CHAR)
TO_DATE (' 00:00:00 ', 'HH24:MI:SS')
+ (lg_end_time - lg_start_time).
Call_time 'HH24:MI:SS'),
ROW_NUMBER)
COURSES (SORTING CID CID NULLS FIRST PARTITION)
AS call_id1
OF test_1
)
SELECT SUM (call_time)
FROM t1;
output:
I get the error: ORA-01722: invalid number
table structure:
Select * form test_1;
CID TYPE LG_END_TIME LG_START_TIME
1508643 expedition 2012/12/03 14:05 2012/12/03 14:02
1508643 treatment 2012/12/03 14:00 03/12/2012 14:00
1508643 initiation 2012/12/03 14:00 03/12/2012 14:00
1508662 expedition 2012/12/03 14:18 2012/12/03 14:16
1508662 initiation 2012/12/03 14:01 03/12/2012 14:01
1508662 treatment 2012/12/03 14:02 03/12/2012 14:01
1508643 expedition 2012/12/03 14:02 03/12/2012 14:00
1508662 expedition 2012/12/03 14:16 2012/12/03 14:02
Thanks for your helpI think this example might help.
SQL> select decode(call_id1,99,null,cid) cid, 2 decode(call_id1,99,null,type) type, 3 decode(call_id1,99,null,to_char(call_time,'hh24:mi:ss')) call_time, 4 decode(call_id1,99,null,substr(call_id1,1,5)) call_id1, 5 total_time 6 from (select cid, 7 type, 8 call_time, 9 call_id1, 10 total_time 11 from (select cid, 12 type, 13 call_time, 14 call_id1, 15 null total_time 16 from (SELECT CID , 17 TYPE, 18 to_date(TO_CHAR (TO_DATE ('00:00:00', 'HH24:MI:SS') + 19 (lg_end_time - lg_start_time),'HH24:MI:SS'),'HH24:MI:SS') call_time, 20 ROW_NUMBER () OVER (PARTITION BY CID ORDER BY CID NULLS FIRST) AS call_id1 21 FROM test_1 ) t1 22 union all 23 select cid, 24 null type, 25 null call_time, 26 99 call_id1, 27 lpad(hours,2,'0')||':'||lpad(minutes,2,'0')||':'||lpad(seconds,2,'0') total_time 28 from (select cid, 29 sum(to_number(to_char(call_time,'hh24'))) + 30 trunc((sum(to_number(to_char(call_time,'mi'))) + 31 (trunc(sum(to_number(to_char(call_time,'ss')))/60)))/24) hours, 32 sum(to_number(to_char(call_time,'mi'))) + 33 (trunc(sum(to_number(to_char(call_time,'ss')))/60)) minutes, 34 (sum(to_number(to_char(call_time,'ss'))) - 35 ((trunc(sum(to_number(to_char(call_time,'ss')))/60)) * 60)) seconds 36 from (SELECT CID , 37 TYPE, 38 to_date(TO_CHAR (TO_DATE ('00:00:00', 'HH24:MI:SS') + 39 (lg_end_time - lg_start_time),'HH24:MI:SS'),'HH24:MI:SS') call_time, 40 ROW_NUMBER () OVER (PARTITION BY CID ORDER BY CID NULLS FIRST) AS call_id1 41 FROM test_1 ) t1 42 group by cid) ) 43 order by cid, call_id1 ); CID TYPE CALL_TIME CALL_ID1 TOTAL_TIME ---------------------------------------- -------------------- --------- -------- ---------- 1508643 Dispatching 00:02:06 1 1508643 Initiation 00:00:00 2 1508643 Treatment 00:00:39 3 1508643 Dispatching 00:02:50 4 00:05:35 1508662 Treatment 00:01:03 1 1508662 Initiation 00:00:00 2 1508662 Dispatching 00:13:17 3 1508662 Dispatching 00:02:43 4 00:17:03 10 rows selected SQL>
-
java.sql.SQLException: ORA-06550 and ORA-00900 call stored procedures
Hi all
I have 2 a stored procedures that I want to call from my Session bean. One of them takes a few settings, but not the other. When I call the procedures, I get the following errors described below. I tested the two stored procedures in sql plus and sqldveleoper and they work well. The funniest, it is, I have another stored procedure that I can call successfully from the same bean in session with no problems, so I'm a bit confused as to why his play now.
I use stand-alone 10.1.3.4 OC4J and Oracle 10 g Db 10.2.0.4 and platform DB that I use is Oracle10gPlatform and Eclipselink as my JPA provider. I have also tried against toplink (not toplink essentials) and still no joy
Here is the error I get when I try and call the procedure which takes the parameters of the session bean
Here are my stored procedure that take parametersInternal Exception: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'HASHDATA' ORA-06550: line 1, column 7: PL/SQL: Statement ignored Error Code: 6550 Call: BEGIN HashData(input=>?, hashedValue=>?, hashed=>?); END; bind => [password1, => hashedValue, => hashed] Query: DataReadQuery()
Here is my code in the session bean to call the procedure that takes as parameters (Hashdata)create or replace procedure hashData(input IN VARCHAR2, hashedValue OUT BLOB, hashed OUT BOOLEAN) as inputRaw RAW(2000); --hashed BOOLEAN := false; begin dbms_output.put_line('the data to be hashed is '||input); dbms_output.put_line('converting input to raw ...'); inputRaw := utl_i18n.string_to_raw(input,'AL32UTF8'); dbms_output.put_line('Hashing Data ...'); hashedValue := DBMS_CRYPTO.Hash (src=>inputRaw,typ=>DBMS_CRYPTO.HASH_SH1); dbms_output.put_line('hash is '||UTL_I18N.raw_to_char(dbms_lob.substr(hashedValue, 4000,1))); if (hashedValue is not null) then hashed :=true; dbms_output.put_line('hashedValue IS NOT null'); else hashed := false; dbms_output.put_line('hashedValue IS null'); end if; end;
When I call the other takes no parameters, I get the following error.public UserBean() { // TODO Auto-generated constructor stub sessMan = SessionManager.getManager(); session = sessMan.getSession("Session", Thread.currentThread() .getContextClassLoader()); } public Serializable hashData(String input){ logger.debug("Hashing Data ... "); hashedValue= null; boolean hashed=false; StoredProcedureCall call = new StoredProcedureCall(); ValueReadQuery query = new ValueReadQuery(); call.setProcedureName("HashData"); call.addNamedArgumentValue("input", input); call.addNamedOutputArgument("hashedValue", "hashedValue", java.sql.Blob.class); call.addNamedOutputArgument("hashed", "hashed", java.lang.Integer.class); query.addArgument("input"); query.setCall(call); session.executeQuery(query); if ((Boolean)hashed){ logger.debug("The data has been hashed and the hash value is: "+hashedValue); } else{ logger.debug("The data has could not be hashed"); hashedValue=null; } return (Serializable)hashedValue; }
Here is the procedure which takes no parametersInternal Exception: java.sql.SQLException: ORA-00900: invalid SQL statement Error Code: 900 Call: BEGIN testJPAProc(); END; Query: DataReadQuery()
Heres is the code to call procedures that take no parameterscreate or replace procedure testJPAProc is begin dbms_output.put_line('testJPAProc called'); end;
You guys can tell me where I'm wrong if I do something wrong. Why make these mistakes? because as far as I can tell the code (java and pl/sql) are both correct unless there is something I missed. It's kinda funny because I have another stored procedure I can call successfully.StoredProcedureCall call = new StoredProcedureCall(); ValueReadQuery query = new ValueReadQuery(); call.setProcedureName("testJPAProc"); query.setCall(call); session.executeQuery(query);
Thank youThe first question is that the Boolean in Oracle is not a supported JDBC type, but a PLSQL type.
Change to an INTEGER is probably the best, you can also use the PLSQLStoredProcedureCall class to access.The second problem is perhaps that the stored procedure is not valid, make sure that it compiled correctly. It can also be the type of your query, you must use a DataModifyQuery, not a read request that it returns nothing.
If still no luck, try to call directly through JDBC, it works?---
James: http://www.eclipselink.org: http://en.wikibooks.org/wiki/Java_Persistence -
to DECLARE * ERROR at line 1: ORA-00900: invalid SQL statement
This works fine when I use the System user to create a schema and then run this script.
When I create another user with grant connect, resources, create view permissions I get this error:
DECLARE
*
ERROR on line 1:
ORA-00900: invalid SQL statement
ORA-06512: at...
DECLARE
ID MY_TABLE.ID%TYPE;
tNom my_table. % TABLENAME TYPE;
PName MY_TABLE_TWO. PROPERTYNAME % TYPE;
CURSOR c1 IS
SELECT distinct evt.id, evt. TABLENAME, vid.propertyname
FROM my_table evt, vid MY_TABLE_TWO
WHERE the evt. COL_1 = 1
AND evt. COL_2 = vid. COL_2
and not exists (select facts FROM MY_TABLE_THREE 1)
where evt.id = facts.eventid and facts.displayname = vid.propertyname);
BEGIN
OPEN c1;
LOOP
FETCH c1 INTO id, tNom, pname;
OUTPUT WHEN c1% NOTFOUND;
INSERT INTO MY_TABLE_THREE (ID, COLUMNLENGTH)
VALUES (S_ANALYTICS_SEQUENCE.nextval, 255);
RUN IMMEDIATELY 'ALTER TABLE ' | tNom | 'Add ' | PName | ' _ NVARCHAR2 (255);
END LOOP;
CLOSE c1;
END;Hello
Maybe missing a privilege. If I were you, I'll try this first:
DECLARE id MY_TABLE.ID%TYPE; tname MY_TABLE.TABLENAME%TYPE; pname MY_TABLE_TWO.PROPERTYNAME%TYPE; CURSOR c1 IS SELECT DISTINCT evt.id, evt.TABLENAME, vid.propertyname FROM MY_TABLE evt, MY_TABLE_TWO vid WHERE evt.COL_1 = 1 AND evt.COL_2 = vid.COL_2 AND NOT EXISTS (SELECT 1 FROM MY_TABLE_THREE facts WHERE evt.id = facts.eventid AND facts.displayname = vid.propertyname); BEGIN OPEN c1; LOOP FETCH c1 INTO id, tname, pname; EXIT WHEN c1%NOTFOUND; INSERT INTO MY_TABLE_THREE (ID, COLUMNLENGTH) VALUES (S_ANALYTICS_SEQUENCE.NEXTVAL, 255); DBMS_OUTPUT.put_line('ALTER TABLE ' || tname || ' add ' || pname || '_ NVARCHAR2(255)'); --EXECUTE IMMEDIATE 'ALTER TABLE ' || tname || ' add ' || pname || '_ NVARCHAR2(255)'; END LOOP; CLOSE c1; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line(SQLERRM); END; /
Using this approach, you can see the sentences to run without run, I also added an exception block.
Kind regards
Maybe you are looking for
-
It's on a Windows 7 computer. I like the new layout and it appears on my laptop Windows Vista Home. I would just have the new layout.
-
Can't find the right driver Intel Centrino Wi - Fi N 2230 on Satellite P850-133
I went a little crazy when you remove the bloatware preinstalled on my new laptop and accidentally uninstalled the driver wifi. I was looking around a little and found this information in the topic peripheral problem in the information system on Win7
-
Why the remote office after 120 days in server 2008 R2 disconect
Why Remote Desktop disconnect after 120 days in server 2008 R2
-
My photosmart D110 printer stopped scanning and printing. When I try to print, I get a message that it cannot find the printer even if when I run the wireless test page it says that it is connected to my wireless network. My phone and iPad cannot f
-
No full screen on my HP2509p after 1920 x 1080
I just brought an atheist HP2509p LCD full HD display and an ATI HD5850 graphics card. After all implemented (Download Driver from the ATI site), I can't get full screen while all of 1920 x 1080. Can help me slove this problem? Thank you.