Procedure works in sql plus, shows error in sql dev
I create a package spec and body via a script in sql plus. Following is part of script:
procedure updateMetricValue(p_metricValueId_in IN number,
p_username_in IN metricvalue.entryBy%TYPE,
p_value_in IN VARCHAR2)
is
BEGIN
UPDATE MetricValue
SET modifiedBy = p_username_in,
value = CAST(p_value_in as NUMBER(17,4))
WHERE id = p_metricValueId_in;
END updateMetricValue;
No errors in sqlplus. Runs fine. When I look at the package in SQL Developer 1.0, it shows an error: "expecting identifier" just before the 4 in the line:
value = CAST(p_value_in as NUMBER(17,4))
What am I missing?
Using 9.2.0.1.0 on windows XP as development database.
I create a package spec and body via a script in sql plus. Following is part of script:
procedure updateMetricValue(p_metricValueId_in IN number,
p_username_in IN metricvalue.entryBy%TYPE,
p_value_in IN VARCHAR2)
is
BEGIN
UPDATE MetricValue
SET modifiedBy = p_username_in,
value = CAST(p_value_in as NUMBER(17,4))
WHERE id = p_metricValueId_in;
END updateMetricValue;
No errors in sqlplus. Runs fine. When I look at the package in SQL Developer 1.0, it shows an error: "expecting identifier" just before the 4 in the line:
value = CAST(p_value_in as NUMBER(17,4))
What am I missing?
Using 9.2.0.1.0 on windows XP as development database.
Similar Messages
-
Error 45 Initializing In SQL*Plus When Running A Sql Script
Hi All
I have a daily scheduled jobs running on Windows server 2003 and 2008. Oracle Version :10.2.0.1 and 10.2.0.4
right now jobs are not even starting when i run them manually. Found the error Error 45 Initializing In SQL*Plus When Running A Sql Script.
it says Bug:3039738.
what is the solution to fix this Bug ?
thanks
Shawnuser9174724 wrote:
Hi
do you think the Problem is not with the script ?
when i run the job its reaching SQLPLUS and giving error
Error 45 Initializing In SQL*Plus When Running A Sql Script .
Server:windows 2003 and oracle version :10.2.0.1
CMD /C %ORACLE_HOME_PRIME%\bin\sqlplus.exe /NOLOG @ %xxxx_HOME%\DBA_Backup\BackupDo.sql testdb BackupFull
The above line does the following:
1) launches a command procesor
2) passes that command processor the following command line parms:
/C
(process the following command, then terminate)
%ORACLE_HOME_PRIME%\bin\sqlplus.exe
the launched processor will process the executable 'sqlplus.exe' found in the \bin subdirectory, found in the directory indicated by the environment variable ' ORACLE_HOME_PRIME'. The remainder of the command line will be passed to sqlplus.exe for interpretation and processing
/NOLOG
tell sqlplus to start up without trying to immediately log on to a database
typically used to indicate to sqlplus that the immediately following string names a file of sql and sqlplus commands to be processed.
%xxxx_HOME%\DBA_Backup\BackupDo.sql
tell sqlplus to execute the commands found in the file 'BackupDo.sql', found in the subdirectory DBA_Backup, found in the directory name by the environment variable 'xxxx_HOME'.
testdb
BackupFull
pass the values 'testdb' and 'BackupFull' to be used as values for substitution variables &1 and &2 in the file 'BackupDo.sql'
Script:
rmanbackup.rman
BACKUP AS COMPRESSED BACKUPSET DATABASE FORCE PLUS ARCHIVELOG;
DELETE NOPROMPT ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE DISK;
LIST BACKUP SUMMARY;
LIST BACKUP;
EXIT;I don't know what you expect of this. It is an rman script and we've seen no sign of an rman script being executed in any of what you've shown us. RMAN commands are processed by rman, not sqlplus.
Unfortunately, you didn't think showing us the contents of BackupDo.sql was of any value in finding out what your problem was.
Edited by: EdStevens on Jul 11, 2011 7:58 PM -
SP2-0642: SQL*Plus internal error state 2133, context
Hi Everybody
I am getting the below wired error msg in SQL Plus when trying to execute a select statment on a external table
SP2-0642: SQL*Plus internal error state 2133, context 0:0:0
Unsafe to proceed
SP2-0642: SQL*Plus internal error state 2221, context 4294967295:4:0
Unsafe to proceed
Kindly help me out to solve this issue.
Thanks & Regards
Chandra Sekar A.
[email protected]Hi Guys
Thanks for both of you for your replies.
The problem is still pertaining.
Below is the structure I have used to create the external table
CREATE TABLE "Z_TBN_JXPKIREC"
"ORG" NUMBER ,
"ACCT" VARCHAR2(19) ,
"XD_REC_NBR" NUMBER ,
"XD_REC_TYPE_KEY" NUMBER ,
"LOGO" Number ,
"XD_DATE_LAST_MAINT" NUMBER ,
"XD_PLAN_NBR" NUMBER ,
"XD_FILLER_1" VARCHAR2(21) ,
"XD_DATE_ADDED" NUMBER ,
"XD_PRIN_BNP" NUMBER ,
"XD_INT_BNP" NUMBER ,
"XD_INS_BNP" NUMBER ,
"XD_NSF_BNP" NUMBER ,
"XD_SVC_CHG_BNP" NUMBER ,
"XD_LATE_CHG_BNP" NUMBER ,
"XD_MEMBER_BNP" NUMBER ,
"XD_OVLM_BNP" NUMBER ,
"XD_RECV_BNP" NUMBER ,
"XD_COLL_BNP" NUMBER ,
"XD_USER_FEE_1_BNP" NUMBER ,
"XD_USER_FEE_2_BNP" NUMBER ,
"XD_USER_FEE_3_BNP" NUMBER ,
"XD_USER_FEE_4_BNP" NUMBER ,
"XD_USER_FEE_5_BNP" NUMBER ,
"XD_USER_FEE_6_BNP" NUMBER ,
"XD_FILLER_2" NUMBER ,
"XD_FILLER_3" VARCHAR2(85)
ORGANIZATION EXTERNAL (
TYPE ORACLE_LOADER
DEFAULT DIRECTORY LOC_TARGET
ACCESS PARAMETERS (
RECORDS FIXED 2500
CHARACTERSET JA16EBCDIC930
STRING SIZES ARE IN BYTES
NOBADFILE
NODISCARDFILE
LOGFILE 'XXXX_9.LOG'
FIELDS
NOTRIM
"ORG" POSITION (1:3) INTEGER EXTERNAL ,
"ACCT" POSITION (4:22) CHAR(19) ,
"XD_REC_NBR" POSITION (23:25) INTEGER EXTERNAL ,
"XD_REC_TYPE_KEY" POSITION (26:27) INTEGER EXTERNAL ,
"LOGO" POSITION (28:30) INTEGER EXTERNAL ,
"XD_DATE_LAST_MAINT" POSITION (31:34) DECIMAL(7,0) ,
"XD_PLAN_NBR" POSITION (35:37) INTEGER EXTERNAL ,
"XD_FILLER_1" POSITION (42:62) CHAR(21) ,
"XD_DATE_ADDED" POSITION (38:41) DECIMAL(7,0) ,
"XD_PRIN_BNP" POSITION (63:71) DECIMAL(17,0) ,
"XD_INT_BNP" POSITION (72:80) DECIMAL(17,0) ,
"XD_INS_BNP" POSITION (81:89) DECIMAL(17,0) ,
"XD_NSF_BNP" POSITION (90:98) DECIMAL(17,0) ,
"XD_SVC_CHG_BNP" POSITION (99:107) DECIMAL(17,0) ,
"XD_LATE_CHG_BNP" POSITION (108:116) DECIMAL(17,0) ,
"XD_MEMBER_BNP" POSITION (117:125) DECIMAL(17,0) ,
"XD_OVLM_BNP" POSITION (126:134) DECIMAL(17,0) ,
"XD_RECV_BNP" POSITION (135:143) DECIMAL(17,0) ,
"XD_COLL_BNP" POSITION (144:152) DECIMAL(17,0) ,
"XD_USER_FEE_1_BNP" POSITION (153:161) DECIMAL(17,0) ,
"XD_USER_FEE_2_BNP" POSITION (162:170) DECIMAL(17,0) ,
"XD_USER_FEE_3_BNP" POSITION (171:179) DECIMAL(17,0) ,
"XD_USER_FEE_4_BNP" POSITION (180:188) DECIMAL(17,0) ,
"XD_USER_FEE_5_BNP" POSITION (189:197) DECIMAL(17,0) ,
"XD_USER_FEE_6_BNP" POSITION (198:206) DECIMAL(17,0) ,
"XD_FILLER_2" POSITION (207:215) DECIMAL(17,0) ,
"XD_FILLER_3" POSITION (216:300) CHAR(85)
LOCATION (LOC_TARGET: 'XXXX.DAT')
REJECT LIMIT UNLIMITED
NOPARALLEL
and w.r.t. SQL Plus version itz 9.2 and the database server is also 9.2
Your replies are highly appreciated and thanks for your valuable time.
Thanks & Regards
Chandra Sekar A.
[email protected] -
Hi all
I got the following error while starting a database.please help me
SP2-0642: SQL*Plus internal error state 2286, context 0:0:0 Unsafe to proceedHi,
Please look at the notes.
SP2-0642: SQL*Plus Internal Error State 2130 ORA-24315: Illegal Attribute Type [ID 1060880.1]
"SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
They are either Windows related or general.
Regards, -
hai every body,
I have a doubt regarding sql plus commands and PL/SQL..I am using Oracle 10g..I have created 1 procedure for deletion/updation of transactions..and the number of effected rows I just displayed with using " *dbms_output.put_line* (SQL%ROWCOUNT)"..hence before executing the procedure the sqlPlus command "*SET SERVEROUTPUT ON*" should turn on..at most times it is forget to turn on and output becomes vague..
hence my question is "*Is there any package or any thing to execute sql plus commands(here it is SET SERVER OUTPUT ON) through PL/SQL statements???*"
with thanks,
jp@valapadjp@valapad wrote:
I have a doubt regarding sql plus commands and PL/SQL..
Easy PL/SQL supports PL/SQL commands and embedded SQL, which are found in the PL/SQL and SQL reference manuals.
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10472/toc.htm
http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/toc.htm
It does not support the commands of other applications or languages such as SQL*Plus, Unix or COBOL for example.
I am using Oracle 10g..I have created 1 procedure for deletion/updation of transactions..and the number of effected rows I just displayed with using " *dbms_output.put_line* (SQL%ROWCOUNT)"..hence before executing the procedure the sqlPlus command "*SET SERVEROUTPUT ON*" should turn on..at most times it is forget to turn on and output becomes vague..You can set serveroutput on in your log in script for SQL*Plus if you keep forgetting.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/ch_two.htm#sthref94
hence my question is "*Is there any package or any thing to execute sql plus commands(here it is SET SERVER OUTPUT ON) through PL/SQL statements???*"No. -
Executing a procedure - Works on Isql Plus but not SQL Developer??
Hi folks.
I am playing around with some design and structure stuff, mostly just passing values around procedures. I have one procedure (procedure1) which takes a sysdate and then passes it to another procedure (procedure2) which takes the parameter and does a dbms_output.put_line.
Both objects are valid, and compile correctly. I use
exec procedure1;
in iSql Plus and it works perfectly. It prints the dates out and all.
However if I use the exact same command in SQL Developer it gives me error "ORA-00900: invalid SQL statement"
I don't understand why this happens?? The code executes perfectly in one but not the other...Remember that SQL*Plus commands don't work in the worksheet. So, this would fail
exec my_procIn the worksheet you have to declare an anonymous block....
begin
my_proc;
end;
/If you right-click on the procedure in the Navigator and select Run then SQL*Dev will throw up a harness for you. Very handy if you want to get DBMS_OUTPUT, set variables, etc.
Cheers, APC
http://radiofreetooting.blogspot.com -
Hi,
There is an SQL Plus REport which was developed by someone else a couple of years ago. And now i pulled the code to make a few changes in the columns and put it back.
Before i made the change i ran the report from the Oracle applications and there was no error.
But for some reason when i changed it and ran it from applications, there is an error that shows up:
EXEC FND_CONC_STAT.COLLECT
ERROR at line 163:
ORA-00933: SQL command not properly ended
And so i reverted back to the original code and the same error shows up.
Can someone tell me why this is error is showing up?
This is the sql code for the report:
SET ECHO OFF
SET SHOW OFF
SET FEEDBACK OFF
SET VERIFY OFF
SET HEADING OFF
SET PAGESIZE 0
SET LINESIZE 450
--WHENEVER SQLERROR EXIT;
DEFINE vfrmdte = '&&1';
DEFINE vtodte = '&&2';
DEFINE vjobnum = '&&3';
DEFINE vorgid = '&&4';
select substr(we.wip_entity_name,1,10)||';'||
substr(msi.segment1,1,10)||';'||
rc.customer_number||';'||
rsu.location||';'||
substr(sl.cust_po_number,1,25)||';'|| --changed sh to sl
--sh.ordered_date||';'||
sl.creation_date||';'||----extra colmn added
sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
sl.request_date||';'||
substr(dcgv.segment2,1,15)||';'||
substr(dgv.SEGMENT1,1,20)||';'||
sh.order_number||';'||
substr(dcgv.segment3,1,15)||';'||
substr(dcgv.segment4,1,25)||';'||
substr(dscv.segment2,1,20)||';'||
substr(dscv.segment3,1,10)||';'||
wdj.start_quantity||';'||
wdj.quantity_completed||';'||
sl.order_quantity_uom||';'||
wdj.completion_subinventory||';'||
wdj.completion_locator_id||';'||
wdj.primary_item_id||';'||
wdj.wip_entity_id||';'||
wdj.scheduled_start_date||';'||
wdj.status_type||';'||
substr(ml.meaning,1,30)||';'||
ml.lookup_code||';'||
md.demand_source_header_id||';'||
substr(md.demand_source_line,1,15)||';'||
mso.sales_order_id||';'||
substr(mso.segment1,1,15)||';'||
substr(mso.segment2,1,25)||';'||
substr(mso.segment3,1,20)||';'||
mic.category_set_id||';'||
mic2.category_set_id||';'||
dgv.category_id||';'||
dcgv.category_id||';'||
sh.header_id||';'||
sh.order_type_id||';'||
sl.line_number||';'||
sl.line_id||';'||
sl.inventory_item_id||';'||
substr(sl.attribute11,1,20)||';'||
msi.fixed_lot_multiplier||';'||
substr(dscv.segment1,1,20)||';'||
wdj.organization_id||';'||
rc.customer_id||';'||
rsu.site_use_id||';'||
sl.LAST_UPDATE_DATE------extra colmn added
from
apps.wip_entities we ,
apps.wip_discrete_jobs wdj ,
apps.mfg_lookups ml ,
--apps.wip_so_allocations wsa ,
apps.mtl_demand md, --inv.mtl_demand md ,
apps.mtl_sales_orders mso ,
apps.mtl_system_items_b msi,--inv.mtl_system_items_b msi ,
apps.mtl_item_categories mic ,
apps.mtl_item_categories mic2 ,
apps.mtl_item_categories mic3 ,
apps.mtl_category_sets mcs ,
apps.mtl_category_sets mcs2 ,
apps.mtl_category_sets mcs3 ,
apps.MTL_CATEGORIES_B dgv,--INV.MTL_CATEGORIES_B dgv ,
apps.MTL_CATEGORIES_B dcgv ,
apps.MTL_CATEGORIES_B dscv ,
apps.oe_order_headers_all sh, --so_headers_all sh ,
apps.oe_order_lines_all sl, --so_lines_all sl ,
apps.oe_transaction_types_tl sot, --so_order_types_all sot ,
apps.ra_customers rc ,
apps.ra_site_uses_all rsu
where
we.wip_entity_id = wdj.wip_entity_id
and wdj.firm_planned_flag in (1,2)
and wdj.status_type = ml.lookup_code
and ml.lookup_type = 'WIP_JOB_STATUS'
and md.supply_source_header_id = we.wip_entity_id
-- and sh.header_id = mso.sales_order_id
and mso.segment1 = sh.order_number
and mso.segment2 = sot.name
and sot.transaction_type_id = sh.order_type_id
and sh.sold_to_org_id = rc.customer_id
and sh.ship_to_org_id = rsu.site_use_id
--DUPLICATE and sh.order_type_id = sot.order_type_id
and sl.header_id = sh.header_id
and sl.line_id = md.demand_source_line
and sl.inventory_item_id = msi.inventory_item_id
and msi.organization_id = wdj.organization_id
and msi.inventory_item_id = mic.inventory_item_id
and msi.organization_id = mic.organization_id
and mic.category_set_id = mcs.category_set_id
and mcs.category_set_name = 'DWC Groups'
and dgv.category_id = mic.category_id
AND dgv.STRUCTURE_ID = 50109
and msi.inventory_item_id = mic2.inventory_item_id
and msi.organization_id = mic2.organization_id
and mic2.category_set_id = mcs2.category_set_id
and mcs2.category_set_name = 'DWC COLORS'
and dcgv.category_id = mic2.category_id
AND dcgv.STRUCTURE_ID = 50111
and msi.inventory_item_id = mic3.inventory_item_id
and msi.organization_id = mic3.organization_id
and mic3.category_set_id = mcs3.category_set_id
and mcs3.category_set_name = 'DWC Ship'
and dscv.category_id = mic3.category_id
AND dscv.STRUCTURE_ID = 50112
AND to_date(to_char(sl.request_date,'DD-MON-YYYY'),'DD-MON-YYYY') between
nvl(to_date(to_char('&vfrmdte','DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
and nvl(to_date(to_char('&vtodte' ,'DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
AND we.wip_entity_name = NVL('&vjobnum', we.wip_entity_name)
AND we.organization_id = NVL('&&4',we.organization_id)
AND wdj.status_type IN (1,3)
GROUP BY
substr(we.wip_entity_name,1,10)||';'||
substr(msi.segment1,1,10)||';'||
rc.customer_number||';'||
rsu.location||';'||
substr(sl.cust_po_number,1,25)||';'|| --changed from sh to sl
--sh.ordered_date||';'||
sl.creation_date||';'||
sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
sl.request_date||';'||
substr(dcgv.segment2,1,15)||';'||
substr(dgv.SEGMENT1,1,20)||';'||
sh.order_number||';'||
substr(dcgv.segment3,1,15)||';'||
substr(dcgv.segment4,1,25)||';'||
substr(dscv.segment2,1,20)||';'||
substr(dscv.segment3,1,10)||';'||
wdj.start_quantity||';'||
wdj.quantity_completed||';'||
sl.order_quantity_uom||';'||
wdj.completion_subinventory||';'||
wdj.completion_locator_id||';'||
wdj.primary_item_id||';'||
wdj.wip_entity_id||';'||
wdj.scheduled_start_date||';'||
wdj.status_type||';'||
substr(ml.meaning,1,30)||';'||
ml.lookup_code||';'||
md.demand_source_header_id||';'||
substr(md.demand_source_line,1,15)||';'||
mso.sales_order_id||';'||
substr(mso.segment1,1,15)||';'||
substr(mso.segment2,1,25)||';'||
substr(mso.segment3,1,20)||';'||
mic.category_set_id||';'||
mic2.category_set_id||';'||
dgv.category_id||';'||
dcgv.category_id||';'||
sh.header_id||';'||
sh.order_type_id||';'||
sl.line_number||';'||
sl.line_id||';'||
sl.inventory_item_id||';'||
substr(sl.attribute11,1,20)||';'||
msi.fixed_lot_multiplier||';'||
substr(dscv.segment1,1,20)||';'||
wdj.organization_id||';'||
rc.customer_id||';'||
rsu.site_use_id||';'||
sl.LAST_UPDATE_DATE ----extra colmn addedThen we reverted back to the original and there it was the same error.This doesn't seem possible to me. Maybe you just didn't use the exact original script. Other Charset, other linebreaks, UNIX2DOS conversion, etc.
So debugging the error seems useful to me. At least you got an error message and could start working up on that.
On the other hand maybe it would be better to ask this question in the Applications Forum. I think this is this one: Business Intelligence Applications
Regards
Sven -
Hi there,
I'm using Windows 2000 SP3 with Oracle 9i Database Server release 92010
The sql*pl worksheet work fine several time until now, when I'm clicking on SQL*PL worksheet I'm getting an error message that says:
SQL*Plus executable may not have been installed in C:\oracle\ora92\bin.
CreateProcess: C:\oracle\ora92\bin\sqlplus -r 3/nolog
@c:\oracle\ora92\sysman\config\sqlplusworksheetInit.
sql error = 193
Thanks,
Oded Dror
Email: [email protected]changing the env variable at dos prompt will not change it for other processes. It will be changed
only while the dos prompt window is running. to change it permanently, you need to right click on
My Computer" icon and go to properties -> Advance Options. and change the environment values there. -
Hi All;
First off if this is a misplaced post, sorry about that and please let me know where it should be posted.
I have an Oracle 11.g server that WAS functioning fine up to as of late. For some reason users cannot use SQL Developer (on the server) anymore and are now getting the ever so common error when trying to connect:
ORA-12514 TNS:Listener does not current know of the service.
Nothing has changed with regards to the user ID and passwords, nor have the service names changed or any other config to the Listener.
ALSO:
If I try to come in via a CLI with sqlplus commands, no dice here either. I'll try this path:
@prompt: sqlplus /nolog
@prompt: SQL*PLUS: Release 11.1.0.6.0 Product...etc. etc.
@prompt: connect /as sysdba
@prompt: ERROR:
ORA-12560 TNS: protocol adapter error
Yes I have did some "google" searches, but they just seem to hint about new installs and configurations. Not said error issues with prior functioning systems.
Any help would be greatly appreciated. Thanks in advance, Steve
Edited by: user10773923 on Apr 1, 2010 3:45 PM
Edited by: user10773923 on Apr 1, 2010 3:46 PMHi,
If on windows, did you change the name of you machine?
It will fail your DB from starting up.
Often
Nothing has changedis our perspective, but something has in fact changed, else there is no reason for it not to work.
Happy Trouble Shooting :)
Regards,
Bhushan -
When connecting to database in SQL* plus giving Error
hi,
I am using Oracle 10g. My problem is when i connecting to database in Server through SQL * Plus giving the Error:
ORA-12514: TNS:listerner does not currently know of service requested in connect descriptor.
Why this is happening i don't know. I created listener also. But no use. How to solve this can any tell me pls... ! .
Thank u...!hi,
Thank u bang for u r reply. It is not working sir. I added the listener as follows:
# listener.ora Network Configuration File: D:\oracle10g\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle10g)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = OVSL06)
(ORACLE_HOME = D:\oracle10g)
(SID_NAME = OVSL06)
(SID_DESC =
(GLOBAL_DBNAME = OVSL06)
(ORACLE_HOME = D:\oracle10g)
(SID_NAME = OVSL06)
I typed the following commands in command prompts
C:\>lsnrctl
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 30-MAY-2007 16:29
:14
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
The command completed successfully
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
System parameter file is D:\oracle10g\network\admin\listener.ora
Log messages written to D:\oracle10g\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
ction
Start Date 30-MAY-2007 16:29:28
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle10g\network\admin\listener.ora
Listener Log File D:\oracle10g\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
same error is getting as i am getting previously. Tell me solution pls....!
Thank u...! -
Error al ejecutar SQL plus y error ORA-03114
Instali Oracle 9i 9.2 cliente sobre windows 98 para conectarme a la base Oracle 7.3.4. La instalacisn fue exitosa y la configuracion del Net tambiin results exitosa, sin embargo, al ejecutar el sql plus me envma un error y hace referencia a product_user_profile, ademas, no puedo ejecutar mi aplicacisn en VB enviando el error ORA-03114: no conectado a ORACLE.
?Qui me falta por configurar?.
Al instalar Oracle 8i no presenta ningun error, funcionando todo exitosamente.Babblefish believes that your question translates to English as:
"I installed Oracle 9i 9,2 client on Windows 98 to connect me to the base Oracle 7.3.4. The installation was successful and the configuration of the Net also was successful, nevertheless, when executing the SQL extra sends an error to me and makes reference to product_user_profile, in addition, I cannot execute my application in VB sending the Ora-03114 error: not connected to ORACLE. What I need to form. When installing Oracle 8i does not present/display ningun successful error, working everything."
Assuming that's a proper translation, there are a couple of points:
- The 9.2 client ins't certified to connect to a 7.3.4 database. There may well be random issues with this configuration.
- product_user_profile indicates to me that your DBA may have set something up that prevents certain users/machines/applications/etc. from logging into the database. I'd try speaking with your DBA to see whether this is the case, and what you need to do to have the system changed.
Justin -
Error while using SQL* PLUS due to PUPBLD.SQL script
DATABASE: 10G Release2
Upon creation of a database, while accessing a schema using sqlplus i received the error
Error accessing PRODUCT_USER_PROFILE
Warning: Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEMSo i logged in as SYSTEM and ran @$ORACLE_HOME/sqlplus/admin/pupbld.sql. But i am still getting the above mentioned error when try to log in to a schema. Before i executed pupbld.sql , i mistakenly executed this script while i was logged in as SYS. Could this be the problem?
This is what i get when i execute pupbld.sql logged in as SYSTEM
SQL> @$ORACLE_HOME/sqlplus/admin/pupbld.sql
DROP SYNONYM PRODUCT_USER_PROFILE
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist
DATE_VALUE FROM PRODUCT_USER_PROFILE
ERROR at line 3:
ORA-00980: synonym translation is no longer valid
DROP TABLE PRODUCT_USER_PROFILE
ERROR at line 1:
ORA-00942: table or view does not exist
ALTER TABLE SQLPLUS_PRODUCT_PROFILE ADD (LONG_VALUE LONG)
ERROR at line 1:
ORA-00942: table or view does not exist
Table created.
DROP TABLE PRODUCT_PROFILE
ERROR at line 1:
ORA-00942: table or view does not exist
DROP VIEW PRODUCT_PRIVS
ERROR at line 1:
ORA-00942: table or view does not exist
View created.
Grant succeeded.
Synonym dropped.
Synonym created.
DROP SYNONYM PRODUCT_USER_PROFILE
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist
Synonym created.
Synonym dropped.
Synonym created.
SQL>
SQL> show user
USER is "SYSTEM"
SQL> @$ORACLE_HOME/sqlplus/admin/pupbld.sql
Synonym dropped.
CREATE TABLE SQLPLUS_PRODUCT_PROFILE AS
ERROR at line 1:
ORA-00955: name is already used by an existing object
DROP TABLE PRODUCT_USER_PROFILE
ERROR at line 1:
ORA-00942: table or view does not exist
ALTER TABLE SQLPLUS_PRODUCT_PROFILE ADD (LONG_VALUE LONG)
ERROR at line 1:
ORA-01430: column being added already exists in table
CREATE TABLE SQLPLUS_PRODUCT_PROFILE
ERROR at line 1:
ORA-00955: name is already used by an existing object
DROP TABLE PRODUCT_PROFILE
ERROR at line 1:
ORA-00942: table or view does not exist
View dropped.
View created.
Grant succeeded.
Synonym dropped.
Synonym created.
DROP SYNONYM PRODUCT_USER_PROFILE
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist
Synonym created.
Synonym dropped.
Synonym created.
SQL>Hi,
You'll need to tidy-up the failed install in the sys schema, then run pupbld again as system.
The easiest way to tidy up sys is to run the drop statments in the pupbld script while attached as sys. You can get a list of the drop commands by grepping the script for 'drop'...
grep -i drop $ORACLE_HOME/sqlplus/admin/pupbld.sql
..review the output - if your happy, copy&past it into sqlplus. Then connect as system and run pupbld again.
Cheers,
Andy Barry
http://www.shutdownabort.com -
Within SQL*Plus, get error code of host command
Hello everyone,
I am currently writing an SQL*Plus (Oracle 10g) that has a big logic and somewhere in the middle, I have to call a host command, which is an C++ function.
I call it using
SQL> HOST cd
SQL> HOST cd bins
SQL> HOST ./my_procedureBut, I need to get the return code of my procedure to see if it finished correctly?
I checked [the manual|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch4.htm#sthref883] but they don't say anything about return codes.
When I try:
SQL> host echo $?
0It always returns 0, even if I SIGTERM or SIGKILL the child process. Anyone has an idea on how is it possible to retrieve the return code?
Thanksuser13117585 wrote:
Hello guys and thanks for your answers.
Let me tell you a little more about my problem... I have a 3 steps process. The first step is done in the database. It updates a few tables. Then, when that step successfully ends, I need to start a second step. That second step is done on the server where I have my SQL Plus session. Because I actually have 2 different machines. The first one is where the database is running and the second one where I have SQL Plus (Oracle client 10g) and the program that I have to start in this second step. Then, once this process is finished and his return code is 0, then I have to execute the third step in the database.
Basically, I wanted to have something like:
VARIABLE returnCode
BEGIN
:returnCode := some_package.do_step_1;
-- do whatever I want with returnCode.
EXCEPTION WHEN ...
END;
HOST execute_external_program
BEGIN
IF external_job_succeed THEN
some_package.do_step_3
END IF;
EXCEPTION...
END;
/I wanted to use the Oracle Scheduler to create an EXTERNAL JOB. The problem is that the external program is not deployed on the same machine as the database.I know that on 11g, we have external remote jobs. But I'm on 10g and I have no agent on the server where the external program is. So, what are my options? SQL*Plus and the host command... Or I can also write a bash script to do that... Or any hight level programming language...
Any other idea?
Thanks again guys,move functionality of second step into PL/SQL procedure resident inside DB. -
Logging into ORACLE 9I using SQL*PLUS.TNS Error
I have installed Oracle 9i for windows and am trying to login using SQL*PLUS
user: system
pwd: manager
Host String: BHURU
It says TNS could resolve service name.
I have all the services running in the admin monitor.
Am I missing something? Please advise.Can you post your tnsnames.ora file contents and listener.ora contents here?
There may be tons of things wrong with the error actually,
ORA-12154: TNS:could not resolve the connect identifier specified
Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
Action:
- If you are using local naming (TNSNAMES.ORA file):
- Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
- Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
- Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
- If you are using directory naming:
- Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
- Verify that the LDAP directory server is up and that it is accessible.
- Verify that the net service name or database name used as the connect identifier is configured in the directory.
- Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
- If you are using easy connect naming:
- Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
- Make sure the host, port and service name specified are correct.
- Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.
HTH
Aman....
Edited by: Aman.... on Oct 7, 2008 5:46 PM
Added error info -
My scripts all contain relative file paths e.g.
@@../directory1/file1.sql
Is there a way of setting the current working directory in SQL Developer to make this work?
In SQL*Plus for windows you simply opened the file but this does not seem to work.As I said, run them in SQL*Plus.
SQL*Developer is a development tool and database browser, not a SQLPLus clone.
It has its own methods of extracting data which may or may not suit your output requirements. You don't need col statements as much if you are viewing data in a grid, for example. [1]
I don't know what you use the sqlplus scripts for, but they could be replaced over time with some combination of Apex, SQLDeveloper reports and straight sqldeveloper queries.
As for SQL*PLus being greyed out on the menu, there are some known issues about that. I think one of them is that you need to be using tns connections. However, the sqlplus menu item is gone in sqldeveloper 1.5 so don't rely on it. Learn to run if from the command line.
[1] Despite that, I would arguethat SQLDeveloper should support all (with tiny exceptions) SQLPlus commands. Not because I see it as a sqlplus replacement, but so it can be used to develop scripts which can then be run in SQL*Plus without amendment (without the hassle of switching back and forth during development)
Maybe you are looking for
-
Hi, After installation, I took out the two folder stacks that existed (didn't want downloads or documents to be in there). No problem at that point. NOW, however, I would like to place some stacks of my own in the dock and it is not accepting any fol
-
PPro cs6 - Audition cs6 - PPro, round trip problem
I'm having trouble completing the round trip. I got my audio tracks from PPro CS6 to Audition CS6 without problems, right by the manual. But I'm having trouble getting that audio work back into PPro. I'm working a mid-sized project (one hour class,
-
Solaris 10 u11 : Is it possible to mix IPMP with vertual network interface
Hi I have a system with 4 Ethernet interfaces , I'd like to try to have virtual network interface on two of them . then configure IPMP between each two. - Is it possible to mix IPMP and VNIC ? - online , I found posts about having vnic on solaris by
-
Knowing the Targets of a Monitor\Rule
Hi All, We have some 500 odd monitors in our environment. We want to know the target of each monitor. The target can be a computer\computerGroup as such. We are interested in knowing the target of each and every monitor. Is there a way of doing it?
-
I have the Jeode EVM on my PDA. I have to execute a code for which I have to list 9 jar files. The entire .ink file is around 400 characters. Could someone please tell me if there is a way to increase the 255 character limit or if I could change the