Compilation error in PL/SQL
Hi All,
Please find the strange query situation in PLSQL.
If i run the query without PLSQL block (i.e. declar begin end) it runs well and insert data
in table but if put the same query in PLSQL block it gives compilation error.
Following is the spool
SQL> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
PL/SQL Release 8.1.7.4.0 - Production
CORE 8.1.7.0.0 Production
TNS for IBM/AIX RISC System/6000: Version 8.1.7.4.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
SQL> insert into smcbom_load_hours_temp
2 select data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date) v_period,sum(v_hr),-1,sysdate,-1,sysdate
3 from (
4 select plan_level,sp.data_set_name,
5 sp.value1,smcbom_flex_budget.calculate_period_days(sp.period1),inweight ,
6 usagerate ,operationseq,percent,
7 sbov.group_id,sp.alloy,sp.planner_code,
8 sbov.days,sbov.totaloffsetdays,deptclass,dept,
9 decode(plan_level,1,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate *
10 (SELECT MAX(INWEIGHT)
11 FROM SMCBOM_BOM_OPERATION_VIEW
12 WHERE ALLOY=sbov.alloy
13 AND PLANNER_CODE=sbov.planner_code
14 AND PLAN_LEVEL = 0
15 AND GROUP_ID = sbov.group_id ),
16 0,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate ,
17 1) v_hr,
18 smcbom_flex_budget.get_start_date(sp.period14)+sbov.totaloffsetdays v_date,
19 sum(-sbov.totaloffsetdays)
20 over (partition by sp.alloy,sp.planner_code,sbov.group_id
21 order by plan_level asc,operationseq desc) new_offset
22 from smcbom_bom_operation_view sbov,smcbom_sales_prod_forecasts sp
23 where sbov.alloy= sp.alloy
24 and sbov.planner_code=sp.planner_code
25 and group_id=521136
26 )
27 group by data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date);
23 rows created.
SQL> commit;
Commit complete.
SQL> declare
2 begin
3 insert into smcbom_load_hours_temp
4 select data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date) v_period,sum(v_hr),-1,sysdate,-1,sysdate
5 from (
6 select plan_level,sp.data_set_name,
7 sp.value1,smcbom_flex_budget.calculate_period_days(sp.period1),inweight ,
8 usagerate ,operationseq,percent,
9 sbov.group_id,sp.alloy,sp.planner_code,
10 sbov.days,sbov.totaloffsetdays,deptclass,dept,
11 decode(plan_level,1,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate *
12 (SELECT MAX(INWEIGHT)
13 FROM SMCBOM_BOM_OPERATION_VIEW
14 WHERE ALLOY=sbov.alloy
15 AND PLANNER_CODE=sbov.planner_code
16 AND PLAN_LEVEL = 0
17 AND GROUP_ID = sbov.group_id ),
18 0,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate ,
19 1) v_hr,
20 smcbom_flex_budget.get_start_date(sp.period14)+sbov.totaloffsetdays v_date,
21 sum(-sbov.totaloffsetdays)
22 over (partition by sp.alloy,sp.planner_code,sbov.group_id
23 order by plan_level asc,operationseq desc) new_offset
24 from smcbom_bom_operation_view sbov,smcbom_sales_prod_forecasts sp
25 where sbov.alloy= sp.alloy
26 and sbov.planner_code=sp.planner_code
27 and group_id=521136
28 )
29 group by data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date);
30 end;
31 /
(SELECT MAX(INWEIGHT)
ERROR at line 12:
ORA-06550: line 12, column 2:
PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
ORA-06550: line 22, column 6:
PLS-00103: Encountered the symbol "(" when expecting one of the following:
, from
SQL> spool off;
In some versions of Oracle (certainly all of the 8.x versions and earlier, and possibly some of the earlier 9 versions) the SQL parsers in the SQL engine and in the PL/SQL engine were different. Some features that worked directly in SQL did not work in PL/SQL. Scalar sub-queries were one of those things.
You have three options. You can try to re-write the insert statement to eliminate the PL/SQL unimplemented feature. You can create a view in the database for the SELECT part of the insert statement then use that view in the insert. finally, and least desirable, you can build the whole statment as a string, and use EXECUTE IMMEDIATE to run it in PL/SQL.
HTH
John
Similar Messages
-
Compilation error while generating the form in linux
Hello everyone,
I am using Oracle Designer ver10.1.2.4 in windows to generate the forms with standard object library ofgwebol.olb and template form ofgwebt.fmb. form (with both .fmb and .fmx files) are generated without errors. Also when I open the forms in separately they compiles without errors. But when I copy the same .fmb file into linux enviroment and compile it using frmcmp.sh userid=user/password@database module_type=form compile_all=yes module=form_name it gives following errors.
$> frmcmp.sh userid=odin/odin@ontw10g module_ty
pe=form compile_all=yes module=LOGIN_SCHERM
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
Forms 10.1 (Form Compiler): Release - Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
FRM-18108: Failed to load the following objects.
Source Module:ofgwebol.olb
Source Object: CGSO$CHAR_DO
Source Module:ofgwebol.olb
Source Object: CGSO$CHAR_DO
Source Module:ofgwebol.olb
Source Object: CGSO$BLOCK
Source Module:ofgwebol.olb
Source Object: CGSO$CANVAS
Source Module:ofgwebol.olb
Source Object: CGSO$WINDOW
Compiling function CGTE$CHECK_CONSTRAINT_VIO...
No compilation errors.
Compiling procedure CGTE$INLOGGEN_ERRORS...
No compilation errors.
L/SQL ERROR 0 at line 17, column 3
Statement ignored
PL/SQL ERROR 201 at line 36, column 3
identifier 'CGNV$.NAV_CLOSE_FORMS' must be declared
PL/SQL ERROR 0 at line 36, column 3
Statement ignored
PL/SQL ERROR 201 at line 37, column 3
identifier 'CGNV$.NAV_OPENING_WND' must be declared
PL/SQL ERROR 0 at line 37, column 3
Statement ignored
Compiling KEY-HELP trigger on form...
No compilation errors.
Compiling WHEN-WINDOW-ACTIVATED trigger on form...
Compilation error on WHEN-WINDOW-ACTIVATED trigger on form:
PL/SQL ERROR 201 at line 6, column 8
identifier 'CGNV$GET_ITEM_WINDOW' must be declared
PL/SQL ERROR 0 at line 4, column 3
Statement ignored
Compiling POST-TEXT-ITEM trigger on form...
Compilation error on POST-TEXT-ITEM trigger on form:
PL/SQL ERROR 201 at line 4, column 3
identifier 'CGNV$.STORE_WND_ITEM' must be declared
PL/SQL ERROR 0 at line 4, column 3
Statement ignored
Compiling WHEN-WINDOW-CLOSED trigger on form...
Compilation error on WHEN-WINDOW-CLOSED trigger on form:
PL/SQL ERROR 201 at line 5, column 3
identifier 'CGNV$.TERMINATE_WINDOW' must be declared
PL/SQL ERROR 0 at line 5, column 3
Statement ignored
Compiling WHEN-FORM-NAVIGATE trigger on form...
Compilation error on WHEN-FORM-NAVIGATE trigger on form:
PL/SQL ERROR 201 at line 3, column 3
identifier 'CGNV$.REMOVE_CHILD_FORM' must be declared
PL/SQL ERROR 0 at line 3, column 3
Statement ignored
Compiling KEY-EXIT trigger on form...
Compilation error on KEY-EXIT trigger on form:
PL/SQL ERROR 201 at line 5, column 3
identifier 'CGNV$.NAV_ENTER_QUERY' must be declared
PL/SQL ERROR 0 at line 5, column 3
Statement ignored
PL/SQL ERROR 201 at line 9, column 5
identifier 'CGNV$.CLOSE_ALL_WINDOWS' must be declared
PL/SQL ERROR 0 at line 9, column 5
Statement ignored
Compiling KEY-CLRFRM trigger on form...
No compilation errors.
Compiling ON-ERROR trigger on INLOGGEN data block...
No compilation errors.
Compiling KEY-PREV-ITEM trigger on AGB_ID item in INLOGGEN data block...
Compilation error on KEY-PREV-ITEM trigger on AGB_ID item in INLOGGEN data block
PL/SQL ERROR 201 at line 4, column 3
identifier 'CGNV$GO_PREV_ITEM' must be declared
PL/SQL ERROR 0 at line 4, column 3
Statement ignored
Compiling KEY-NEXT-ITEM trigger on AGB_NAAM item in INLOGGEN data block...
Compilation error on KEY-NEXT-ITEM trigger on AGB_NAAM item in INLOGGEN data blo
ck:
PL/SQL ERROR 201 at line 4, column 3
identifier 'CGNV$GO_NEXT_ITEM' must be declared
PL/SQL ERROR 0 at line 4, column 3
Statement ignored
Compilation errors have occurred.
Form not created
I think some standard library are missing in Linux environment. But I do not know the name of them and neither I can find. Please suggest the what need to be done to resolve the problem. The reason I am compiling the form in Linux is that I can run the form in windows because of corrupted installation of OC4j.
Thanking you all much in advance.
Edited by: Deepank on Dec 2, 2008 1:49 AMDeepank-
When generating forms from Designer, Designer attaches libraries - like ofgmes.pll, ofgnavl.pll, etc. You will need to copy these libraries to the same directory where your forms reside on your Linux box. To find out what libraries ate attached to your form, open it on your windows PC after generating it from Designer and you will see the attached libraries. Also, watch out for the case-sensitivity of Linux. If you have the Designer libraries on your linux box and you still get errors, try changing the case of the names of the libraries.
Hope this helps,
Dan -
TSQL code that causes table data to be deleted rather than fail with a compilation error
Afternoon,
I recently did this by accident and it felt as though it should have failed with a compilation error rather than run
A query of the form
delete from jobs
where id in
select id from calibrations
will delete all rows in the jobs table when the id column exists in the jobs table, but not the calibrations table. This should fail with a compilation error.
the following sql can be used to generate a test database to show the problem
USE [test]
GO
/****** Object: Table [dbo].[calibrations] Script Date: 28/11/2014 13:32:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[calibrations](
[JobId] [int] NULL,
[textfield] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[jobs] Script Date: 28/11/2014 13:32:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[jobs](
[Id] [int] NOT NULL,
[Name] [nchar](10) NULL
) ON [PRIMARY]
GO
INSERT [dbo].[calibrations] ([JobId], [textfield]) VALUES (1, N'something')
GO
INSERT [dbo].[jobs] ([Id], [Name]) VALUES (1, N'a ')
GO
INSERT [dbo].[jobs] ([Id], [Name]) VALUES (2, N'b ')
GO
INSERT [dbo].[jobs] ([Id], [Name]) VALUES (3, N'c ')
GO
INSERT [dbo].[jobs] ([Id], [Name]) VALUES (4, N'd ')
GO
INSERT [dbo].[jobs] ([Id], [Name]) VALUES (5, N'e ')
GO
INSERT [dbo].[jobs] ([Id], [Name]) VALUES (6, N'f ')
GO
Simon
simonwill delete all rows in the jobs table when the id column exists in the jobs table,
but not the calibrations table. This should fail with a compilation error.
Hello Simon,
That's a bug in your T-SQL Statement, not in SQL Server. The Statement as it is valid and column "id" exists, so why should it fail on compilation?
And that is the reason why we always should use full qualified object name, e.g. like
delete from jobs AS J
where J.id in
select SUB.id from calibrations AS SUB
and this Statement should fail on compilation.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Hi!
If I run this script:
create table t(n number);
create or replace
TRIGGER t1
-- Coment wiсh work!
BEFORE UPDATE ON t
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
past_due EXCEPTION;
begin
if 1 = 1 then
raise_application_error(-20001, 'First trigger!' , TRUE);
end if;
end t1;
+/+
create or replace
-- Coment with error
TRIGGER t2
BEFORE UPDATE ON t
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
past_due EXCEPTION;
begin
if 1 <> 1 then
raise_application_error(-20001, 'Second trigger!' , TRUE);
end if;
end;
+/+
Result:
+SQL Command: create or replace --+
Failed: ORA-24344: success with compilation error
+24344. 00000 - "success with compilation error"+
*Cause: A sql/plsql compilation error occurred.+
*Action: Return OCI_SUCCESS_WITH_INFO along with the error code+
anonymous block completed
trigger text in SLD Developer:
create or replace TRIGGER t2
BEFORE UPDATE ON t
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
past_due EXCEPTIONIt looks to me like there is a bug in the logic that determines if the current statement is SQL (terminated by ";") or PL/SQL (terminated by "/") - putting the comment before the object type you are creating is causing SQL Developer to assume it is SQL and it stops the statement at the first ";".
The same thing happens if you try to create a package with a comment between the "create or replace" and the "package", for example:
create or replace
-- comment
package xxx_pkg
i number;
j number;
end;
/creates a package with the following source, executing as a statement (so long as the cursor is between the create and the first ";"):
package xxx_pkg
i numbertheFurryOne -
PL/SQL Procedure Compilation error
Hi,
<br><br>
I have wrote a PL/SQL Stored Procedure to read a couple of table values and then output some data to a file, when I create the procedure on the database I get the following compilation error:
<br><br>
LINE/COL ERROR<br>
-------- -----------------------------------------------------------------<br>
25/7 PLS-00103: Encountered the symbol ")" when expecting one of the<br>
following:<br>
( - + case mod new null <an identifier><br>
<a double-quoted delimited-identifier> <a bind variable> avg<br>
count current max min prior sql stddev sum variance execute<br>
forall merge time timestamp interval date<br>
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe<br>
The symbol "null" was substituted for ")" to continue.<br>
<br>
The script is below: <br><br>
CREATE OR REPLACE <br>
PROCEDURE TDF_EXTRACT AS<br>
v_file UTL_FILE.FILE_TYPE;<br>
YEAR number(4);<br>
Q1_VALUE NUMBER(7);<br><br>
BEGIN<br><br>
SELECT PERSON_VALUE<br>
INTO Q1_VALUE<br>
FROM PERSON<br>
WHERE ID = 79;<br><br>
SELECT EXTRACT(YEAR FROM SYSDATE)<br>
INTO YEAR <br>
FROM DUAL;<br><br>
v_file := UTL_FILE.FOPEN(location => '/tmp',<br>
filename => 'extratced_values.txt',<br>
open_mode => 'W',<br>
max_linesize => 32767);<br><br>
UTL_FILE.PUT_LINE(v_file,<br>
'Q1' || YEAR || '23' || Q1_VALUE || '\r\n' ||<br>
);<br><br>
UTL_FILE.FCLOSE(v_file);<br><br>
END TDF_EXTRACT;'Q1' || YEAR || '23' || Q1_VALUE || '\r\n' ||
);Syntax error during concatenation, maybe?
C.
Message was edited by:
cd -
Warning: Type created with compilation errors. sql : oracle 11gr2
I'm trying to create a supertype customer service and subtype agent and supervisor, so they can inherent values however when I try to run this in oracle sql: a message comes up
Warning: Type created with compilation errors.
What is wrong with the code below?
Create or replace type customer_s_type as object ( csID number, csName varchar(15), csType number ) NOT FINAL; Create or replace type supervisor_type UNDER customer_s_type ( title varchar (10) ); Create or replace type agent_type UNDER customer_s_type (title varchar (10)); Create table supervisor of supervisor_type ( CONSTRAINT supervisor_PK PRIMARY KEY (csID)); Create table agent of agent_type (CONSTRAINT agent_PK PRIMARY KEY (csID)); create table customer_service( csID number(10), csType number(10), constraint supervisor_pk primary key(csID) );Wile creating TYPE you need to terminate with a back slash (/) semi colon does not work.
Try like this
create or replace type customer_s_type as object ( csid number, csname varchar(15), cstype number ) not final
create or replace type supervisor_type under customer_s_type ( title varchar (10) )
create or replace type agent_type under customer_s_type (title varchar (10)) -
Sqlserver_utilities use for migrating MS SQL to 9i - compilation error
I've seen lot of questions about compilation error in the sqlserver_utilities particularly on Oracle 9i database where some procedure and functions are not compiled and required rewritten. The main issues seem to be with new features or tables/views not available in pre-10g such as regex, DBA_IND_STATISTICS, etc. Even though there is a IF clause (
IF NOT DBMS_DB_VERSION.VER_LE_9_2 THEN) to prevent execution, however, it won't work for compilation standpoint.
My question is that do we need to comment this section out or rewrite to work for 9i - for example, DBA_IND_STATISTICS view for last_analyzed is not in 9i, but we can use last_analyzed in USER_INDEXES. Is that the only option (manual labor work :-) to resolve this issue for 9i database?
Thanks in advance,
ICI think you made the right choice to go with 10g, 9i is obsolete anyway.
The Migration Workbench come with SQL Developer might only work with 10g because it's built pretty new in 2007.
You can try the older version of standalone Oracle Migration Workbench
http://www.oracle.com/technology/tech/migration/workbench/index.html
It support 9i, The Oracle Migration Workbench is a tool that simplifies the process of migrating
Informix, and DB2 databases to the Oracle platform (Oracle9i and Oracle10g). Again, I still believe go with 10g is better choice. -
Script Task Builds Successfully But Still Has Compile Error (SQL 2012)
This is repost in a way but the problem has not gone away and I really need to find a solution.
I have some script from SSIS 2008 that uses the ReportExecution2005
web service to execute SSRS reports and save the results to Excel. There were some initial problems with confusion between Web Service Reference (legacy?) and Service Reference (WCF) but I think that I have that sorted out
now.
The remaining problem is that, while the VB script (which I have pasted in from a working SSIS 2008 Script Task) builds/complies without error, I get a compile error when I close the Script Task and it has the dreaded "Red X" in the Control
Flow. If I attempt to run the package I get a message box saying that there is a compile error.
How can I identify the problem and fix the error? The script itself has no errors in SSIS 2008.
R CampbellThis is the code by the way (see below) as pasted into the Main sub.
I have added
http://localhost/reportserver/reportexecution2005.asmx as a Web Service
Reference (under the "Advanced" button) not just a Service Reference (WCF).
I can build the code without error but I get an error, saying that there is compile error, when I close the Script Task.
ReportExecutionService definitely shows up in Object Explorer, not the
WCF "equivalent" of ReportExecutionServiceSoapClient.
I have always had the impression, that when you close a Script Task, a compiler kicks in to auto-generate some internal script. Could it be (as seems likely) that this compiler is picking up errors that "Build" doesn't (when the script is open)?
I think that there was once an explicit Compile rather than just Build option in the Script editing environment but I can't find it in SQL 2012 Database Tools (nee BIDS).
Dim objRSExec As New localhost.ReportExecutionService
Dim objParam0 As New localhost.ParameterValue
Dim objParam1 As New localhost.ParameterValue
Dim objParam2 As New localhost.ParameterValu
Dim objParam3 As New localhost.ParameterValue
Dim objParam4 As New localhost.ParameterValue
Dim objParam5 As New localhost.ParameterValue
Dim objParam6 As New localhost.ParameterValue
Dim objParams() As localhost.ParameterValue
Dim objResult() As Byte
Dim objStream As FileStream
Dim FileType As String
Dim FileExtension As String
Dim FilePath As String
Dim NumberOfParameters As Integer
Dim ReportName As String
Dim TaskSuccess As Boolean = True
FileType = Dts.Variables("FileType").Value.ToString()
FileExtension = Dts.Variables("FileExtension").Value.ToString()
FilePath = Dts.Variables("FilePathNameExt").Value.ToString()
ReportName = Dts.Variables("ReportPathName").Value.ToString()
NumberOfParameters = CInt(Dts.Variables("NumberOfParameters").Value) - 1
ReDim objParams(NumberOfParameters)
If NumberOfParameters >= 0 Then
objParam0.Name = Dts.Variables("P0Name").Value.ToString()
objParam0.Value = Dts.Variables("P0Value").Value.ToString()
objParams(0) = objParam0
End If
If NumberOfParameters >= 1 Then
objParam1.Name = Dts.Variables("P1Name").Value.ToString()
objParam1.Value = Dts.Variables("P1Value").Value.ToString()
objParams(1) = objParam1
End If
If NumberOfParameters >= 2 Then
objParam2.Name = Dts.Variables("P2Name").Value.ToString()
objParam2.Value = Dts.Variables("P2Value").Value.ToString()
objParams(2) = objParam2
End If
If NumberOfParameters >= 3 Then
objParam3.Name = Dts.Variables("P3Name").Value.ToString()
objParam3.Value = Dts.Variables("P3Value").Value.ToString()
objParams(3) = objParam3
End If
If NumberOfParameters >= 4 Then
objParam4.Name = Dts.Variables("P4Name").Value.ToString()
objParam4.Value = Dts.Variables("P4Value").Value.ToString()
objParams(4) = objParam4
End If
If NumberOfParameters >= 5 Then
objParam5.Name = Dts.Variables("P5Name").Value.ToString()
objParam5.Value = Dts.Variables("P5Value").Value.ToString()
objParams(5) = objParam5
End If
If NumberOfParameters >= 6 Then
objParam6.Name = Dts.Variables("P6Name").Value.ToString()
objParam6.Value = Dts.Variables("P6Value").Value.ToString()
objParams(6) = objParam6
End If
Try
With objRSExec
.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials
.Url = "http://localhost/reportserver/reportexecution2005.asmx"
.LoadReport(ReportName, Nothing)
.SetExecutionParameters(objParams, "en-us")
objResult = .Render(FileType, Nothing, FileExtension, Nothing, Nothing, Nothing, Nothing)
End With
objStream = File.Create(FilePath, objResult.Length)
With objStream
.Write(objResult, 0, objResult.Length)
.Close()
End With
Catch e As Exception
Dts.Log("ERROR - RSExec - " & e.Message.ToString(), 100, Nothing)
TaskSuccess = False
End Try
If TaskSuccess Then
Dts.TaskResult = ScriptResults.Success
Else
Dts.TaskResult = ScriptResults.Failure
End If
R Campbell -
Wierd SQL Select Compile Error
Hello.
When I do my SQL like this:
SQL SELECT cus_surname as "Surname",
cus_forename as
"FirstName",
cus_telephone as
"Telephone",
cus_address as
"Address1",
cus_line1 as
"Address2",
cus_line2 as
"Address3",
cus_town as
"Address4",
cus_city as
"Address5",
cus_postcode as
"Address6"
INTO :lCustomer
FROM msp_customers
WHERE cus_serial = :lRefCustomer.Serial
on session SessionToUse;
I get this compile error:
The read-only virtual attribute
FoundationClasses.FoundationBusinessObject.IsNew can't be passed as an
OUTPUT or an INPUT OUTPUT parameter.
Yet if I remove the "as" from the SQL Select syntax it works, with no
compile errors.
Why? I don't understand why they are different!
Tim Sawyer
PanCredit
Leeds, UK.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>I added a DBMS_OUTPUT.put_line(l_wrap) in keith codes
and run out put wrapped test codes in sqlplus and can see wrapped test procedure.
create or replace procedure test wrapped
a000000
b2
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
7
11d 124
ohyVALi7ang26ROCF0CZ3wLg6ngwgy7Q2SdqfC/p+D6E39xrRLEK0/eVVEVSORSTWoZXk1gi
JT9nTrV3IXmGVbi5uMlIl+0C/WV9wPlFL5z37QfcEOYUdmLx8iwul2hEvDehUX0jLfiltHqx
MhAgy16zDvWPfv5uE4HrlBvRAYoDmETXR7r10x/uyQyUxDw4sVyq6Ndh4GSFw9zp801nKSN1
P0GOB03CtlcnrqAjQhASJKrP4sXW74oOyr373DBBP/CLndRTT0TZ1HvWVzAgL5C++Dl6PNyQ
But I got compiled errors as
Compilation errors for PROCEDURE SYS.TEST
Error: PLS-00103: Encountered the symbol "ASWALLET_OPEN" when expecting one of the following:
( ; is with authid as cluster compress order using compiled
wrapped external deterministic parallel_enable pipelined
result_cache
The symbol "is" was substituted for "ASWALLET_OPEN" to continue.
Line: 1
Text: create or replace procedure test wrapped
Error: PLS-00103: Encountered the symbol "=" when expecting one of the following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table long double ref
char time timestamp interval date binary national character
nchar
The symbol "<an identifier>" was substituted for "=" to continue.
Line: 1
Text: create or replace procedure test wrapped
Error: PLS-00103: Encountered the symbol "=" when expecting one of the following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table long double ref
char time timestamp interval date binary national character
nchar
Line: 1
Text: create or replace procedure test wrapped
.Bot trigger and procedure works well before wrapped.
I use oracle 11g2 at window 2003.
Thanks
newdba -
Compile Error: "schema 'name' does not exist
Im trying to build a program that quereys a table in a database but i keep getting this error. Am i missing a link between the files or am i missing a line of code in my program??
Apologies. I receive a compiler error which reads as follows;
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
Heres the main body of code i am trying to execute.
public class Main {
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
try{
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
}catch(ClassNotFoundException e){
System.out.println(e);
try{
Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
while (rs.next()) {
String s = rs.getString("Name");
float n = rs.getFloat("Age");
System.out.println(s + " " + n);
}catch(SQLException e){
System.err.println(e);
I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people.
Hope this makes the problem a bit clearer.
Any help would be greatly appreciated. -
Why compilation error--when trying to access the table from itcsi schema
Hi,
when querying the table from itcsi.app iam able to see the data but used in proc saying invalid table name. Whats the problem
when declared p_app_i_old app.app_i%type----It is throwing pls-00201 error
1 Create or replace procedure Test_insert(p_app_i_old integer,
2 p_app_i_new integer,
3 p_APP_ISAC_CPT_I varchar2)
4 is
5 cursor c1 is
6 select distinct table_name,owner
7 from all_tab_columns
8 where owner = 'ITCSI' and column_name='APP_I';
9 t_tablename varchar2(25);
10 t_string varchar2(300);
11 t_num number;
12 Begin
13 For c2 in c1 loop
14 t_num := 0;
15 t_string := 'SELECT count(*) FROM ' || c2.owner ||'.'||c2.table_name||' WHERE APP_I = '||p_
16 execute immediate t_string into t_num;
17 if t_num > 0 then
18 -- dbms_output.put_line('The table name is '||c1_rec.table_name);
19 if c2.Table_name = 'APP' Then
20 INSERT INTO itcsi.App
21 SELECT p_app_i_new,
22 app_acrnym_c,
23 app_x,
24 app_desc_t,
25 app_ipads_t,
26 app_prdcn_stat_t,
27 app_prdcn_stat_d,
28 app_isd_tier_c,
29 app_bus_cont_c,
30 app_extnl_cstm_c,
31 app-ecrpt_lvl_c,
32 app_isac_cpt_i,
33 dsw_gpn_i,
34 ed_cntnt_srce_t,
35 usr_upd_uunm_i,
36 ed_upd_m
37 FROM itcsi.APP
38 WHERE app_i = p_app_i_old;
39 elsif c2.Table_name = 'APP_CETRN' Then
40 Insert into itcsi.APP_CETRN
41 select p_app_i_new,
42 app_cetrn_i,
43 app-curr_cmplnc_t,
44 app_rqr_cmplnc_t,
45 dsw_gpn_i,
46 ed_cntnt_srce_t,
47 usr_upd_uunm_i,
48 ed_upd_m
49 FROM itcsi.APP_CETRN
50 WHERE app_i = p_app_i_old;
51 elsif c2.Table_name = 'APP_GPC' Then
52 Insert into itcsi.APP_GPC
53 select p_app_i_new,
54 gpc_dpnt_x,
55 gpc_elemy_x,
56 pro_i,
57 dsw_gpn_i,
58 ed_cntnt_srce_t,
59 usr_usr_upd_uunm
60 FROM itcsi.APP_GPC
61 WHERE app_i = p_app_i_old;
62 End if;
63 End if;
64 End loop;
65 --Commit;
66* End;
SQL> /
Warning: Procedure created with compilation errors.
SQL> show errors
Errors for PROCEDURE TEST_INSERT:
LINE/COL ERROR
20/2 PL/SQL: SQL Statement ignored
37/23 PL/SQL: ORA-00942: table or view does not exist
40/2 PL/SQL: SQL Statement ignored
Thankshow do i check the grant?
if am in my own schema,how do i connect to itcsi
schema?if you are using a schema other than the ITCSI schema, you need to login as ITCSI. or if you have dba user account you can grant a privilege of
GRANT ALL on ITCSI.APPS to <other SCHEMA>; -
Statspack: error with spcreate.sql in 11.1.0.7 on WIndows
Hello,
I'm trying to install statspack on a 11.1.0.7 64bit RDBMS on Windows 2008 R2.
I get this error during spcreate.sql as sysdba
... Creating views
. quisce_t*drms quiesce_time
ERROR at line 5
ORA-00904: "QUISCE_T" : invalid identifier
I wasn't able to find anything related on metalink....
Any hint?
I was previously able to run it on 11.2.0.1 and 11.2.0.3 RDBMS on Linux systems...
I don't know if it is a problem with this particular version of the rdbms.
Thanks in advance,
Gianlucahello,
running now a snap as perfstat user I get this error
SQL> exec statspack.snap;
BEGIN statspack.snap; END;
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_SHARED_POOL" has errors
ORA-06508: PL/SQL: could not find program unit being called:
"SYS.DBMS_SHARED_POOL"
ORA-06512: at "PERFSTAT.STATSPACK", line 5767
ORA-06512: at line 1
In fact
SQL> select owner,object_name,object_type from dba_objects where status='INVALID
2 order by object_name;
OWNER OBJECT_NAME OBJECT_TYPE
SYS DBMS_SHARED_POOL PACKAGE BODY
PUBLIC STATSPACK SYNONYM
Trying to recompile as sysdba I get
Connected to:
Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
SQL> alter package dbms_shared_pool compile body;
Warning: Package Body altered with compilation errors.
SQL> show errors
Errors for PACKAGE BODY DBMS_SHARED_POOL:
LINE/COL ERROR
87/13 PLS-00323: subprogram or cursor 'PURGE' is declared in a package
specification and must be defined in the package body
Could it be that t was my first 10.2.0.3 spcreate.sql putting the package in this state?
I don't suppose so and that the package was already invalid before... but not sure...
How to correct? I found similar cases where Oracle oly suggested catalog/catproc runs... but I would like to avoid if possible...
Thanks in advance -
Error in pl/sql block with parameters
Hi,
I have the following code which works in normal cursor forloops,
Can some one please check how to achive the same functionality using bulk insert.( i want to use parameterised cursor)
step 1 ---working
declare
CURSOR DEPT_inst
is
select d.deptno
from dept d where d.dname='RESEARCH';
CURSOR emp_inst (p_dept in number)
IS
SELECT e.empno ,
e.ename ,
e.deptno
from emp1 e
where e.deptno = p_dept;
begin
for i in dept_inst loop
delete from emp2 where deptno=i.deptno;
for j in emp_inst(i.deptno) loop
INSERT INTO emp2(empno,
ename,
deptno )
VALUES (j.empno,
j.ename,
j.deptno
end loop;
end loop;
commit;
exception
when others then
dbms_output.put_line( 'exception in err insert'||SQLERRM);
ROLLBACK;
end;
step - 2 compilation error
declare
CURSOR DEPT_inst
is
select d.deptno
from dept d where dname='RESEARCH';
CURSOR emp_inst (p_dept in number)
IS
SELECT e.empno ,
e.ename ,
e.deptno
from emp1 e
where e.dept = p_dept;
TYPE id_tab_dep_1 IS TABLE OF dept_inst%ROWTYPE
INDEX BY PLS_INTEGER;
t_id_dep_1 id_tab_dep_1;
TYPE id_tab_det_1 IS TABLE OF emp_inst(t_id_det_1(indxi).deptno)%ROWTYPE
INDEX BY PLS_INTEGER;
t_id_det_1 id_tab_det_1;
BEGIN
OPEN dept_inst;
FETCH dept_inst
LOOP
BULK COLLECT into t_id_dep_1 LIMIT 100;
EXIT WHEN t_id_dep_1.count <= 0;
FOR indxi IN t_id_det_1.FIRST .. t_id_det_1.LAST LOOP
delete from emp2 where deptno=t_id_det_1(indxi).deptno;
OPEN emp_inst;
LOOP
FETCH emp_inst(t_id_det_1(indxi).deptno)
BULK COLLECT INTO t_id_det_1 limit 100;
EXIT WHEN t_id_det_1.count <= 0;
FOR indxj IN t_id_det_1.FIRST .. t_id_det_1.LAST LOOP
INSERT INTO emp2(empno,
ename,
deptno )
VALUES (t_id_det_1(indxj).empno,
t_id_det_1(indxj).ename,
t_id_det_1(indxj).deptno
END LOOP;
END LOOP;
CLOSE emp_inst;
END LOOP;
END LOOP;
CLOSE dept_inst;
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line( 'exception in err insert' || SQLCODE ||' ' ||SQLERRM);
ROLLBACK;
RETURN;
END;
I am getting below error
TYPE id_tab_det_1 IS TABLE OF emp_inst(t_id_det_1(indxi).deptno)%ROWTYPE
ERROR at line 16:
ORA-06550: line 16, column 69:
PLS-00103: Encountered the symbol "%" when expecting one of the following:
; not null alter index characterEdited by: user11289444 on Dec 26, 2010 3:58 AMhoek wrote:
I was referring to OP's second Bulk DML, the insert part.
You cannot reference individual columns there.Then you have to be even more specific. You cannot reference individual columns there unless you are on 11g:
SQL> select * from v$version
2 /
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> declare
2 cursor dept_inst
3 is
4 select d.deptno
5 from dept d
6 where d.dname = 'RESEARCH';
7 --
8 cursor emp_inst(b_deptno in number)
9 is
10 select e.empno
11 , e.ename
12 , e.deptno
13 from emp1 e
14 where e.deptno = b_deptno;
15 --
16 type depttype is table of number index by binary_integer;
17 depttab depttype;
18 type emptype is table of emp_inst%rowtype /*this will not work*/ index by binary_integer;
19 emptab emptype;
20 --
21 begin
22 --
23 open dept_inst;
24 loop
25
26 fetch dept_inst bulk collect into depttab limit 100;
27 forall i in depttab.first..depttab.last
28 delete from emp2 where deptno = depttab(i);
29 --
30 dbms_output.put_line(sql%rowcount||' records were deleted from table emp2');
31 --
32 -- open emp_inst(depttab(i));
33 open emp_inst(depttab(1));
34 loop
35 fetch emp_inst bulk collect into emptab limit 100;
36 forall j in emptab.first..emptab.last
37 insert into emp2 values(emptab(j).empno,emptab(j).ename,emptab(j).deptno);
38 --
39 exit when emp_inst%notfound;
40 --
41 end loop;
42 exit when dept_inst%notfound;
43 close dept_inst;
44 --
45 end loop;
46 close dept_inst;
47 end;
48 /
insert into emp2 values(emptab(j).empno,emptab(j).ename,emptab(j).deptno);
ERROR at line 37:
ORA-06550: line 37, column 35:
PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND
table of records
ORA-06550: line 37, column 35:
PLS-00382: expression is of wrong type
ORA-06550: line 37, column 51:
PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND
table of records
ORA-06550: line 37, column 51:
PLS-00382: expression is of wrong type
ORA-06550: line 37, column 67:
PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND
table of records
ORA-06550: line 37, column 67:
PLS-00382: expression is of wrong type
ORA-06550: line 37, column 35:
PL/SQL: ORA-22806: not an object or REF
ORA-06550: line 37, column 11:
PL/SQL: SQL Statement ignored
SQL> select * from v$version
2 /
BANNER
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
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> declare
2 cursor dept_inst
3 is
4 select d.deptno
5 from dept d
6 where d.dname = 'RESEARCH';
7 --
8 cursor emp_inst(b_deptno in number)
9 is
10 select e.empno
11 , e.ename
12 , e.deptno
13 from emp1 e
14 where e.deptno = b_deptno;
15 --
16 type depttype is table of number index by binary_integer;
17 depttab depttype;
18 type emptype is table of emp_inst%rowtype /*this will not work*/ index by binary_integer;
19 emptab emptype;
20 --
21 begin
22 --
23 open dept_inst;
24 loop
25
26 fetch dept_inst bulk collect into depttab limit 100;
27 forall i in depttab.first..depttab.last
28 delete from emp2 where deptno = depttab(i);
29 --
30 dbms_output.put_line(sql%rowcount||' records were deleted from table emp2');
31 --
32 -- open emp_inst(depttab(i));
33 open emp_inst(depttab(1));
34 loop
35 fetch emp_inst bulk collect into emptab limit 100;
36 forall j in emptab.first..emptab.last
37 insert into emp2 values(emptab(j).empno,emptab(j).ename,emptab(j).deptno);
38 --
39 exit when emp_inst%notfound;
40 --
41 end loop;
42 exit when dept_inst%notfound;
43 close dept_inst;
44 --
45 end loop;
46 close dept_inst;
47 end;
48 /
PL/SQL procedure successfully completed.
SQL> SY. -
Webutil form compilation error
Hi all
I configured webutil on Application server 10g on linux. but when i compile the demo form on application server using
/u01/app/oracle/OraHome_2/bin/frmcmp.sh module=$ORACLE_HOME/forms/WU_TEST_106.fmb userid=webutil/webutil@orant module_type=form compile_all=yes OUTPUT_FILE=$ORACLE_HOME/forms/WU_TEST_106.fmx
it give me the errors
FRM-18108: Failed to load the following objects.
Source Module:webutil.olb
Source Object: WEBUTIL
Compiling procedure GET_CLIENTINFO...
Compilation error on procedure GET_CLIENTINFO:
PL/SQL ERROR 201 at line 3, column 35
identifier 'WEBUTIL_CLIENTINFO.GET_USER_NAME' must be declared
PL/SQL ERROR 0 at line 3, column 3
Statement ignored
PL/SQL ERROR 201 at line 4, column 35
identifier 'WEBUTIL_CLIENTINFO.GET_IP_ADDRESS' must be declared
PL/SQL ERROR 0 at line 4, column 3
Statement ignored
Compilation errors have occurred.
Form not created
==========================================
i search a lot but failed ..
any solution regarding this plz thanks in advance.[oracle@appserver ~]$ /u01/app/oracle/OraHome_2/bin/frmcmp_batch.sh module=$ORACLE_HOME/forms/webutil.pll userid=webutil/webutil@orant module_type=library compile_all=yes OUTPUT_FILE=$ORACLE_HOME/forms/webutil.plx
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
Forms 10.1 (Form Compiler): Release - Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
Compiling library WEBUTIL...
Invalidating Package Spec CLIENT_IMAGE......
Invalidating Package Spec CLIENT_OLE2......
Invalidating Package Spec CLIENT_TEXT_IO......
Invalidating Package Spec CLIENT_TOOL_ENV......
Invalidating Package Spec CLIENT_WIN_API_DEBUG......
Invalidating Package Spec CLIENT_WIN_API......
Invalidating Package Spec CLIENT_WIN_API_ENVIRONMENT......
Invalidating Package Spec CLIENT_WIN_API_PRELOAD......
Invalidating Package Spec JAVA_EXCEPTION......
Invalidating Package Spec WEBUTIL_BROWSER......
Invalidating Package Spec WEBUTIL_CLIENTINFO......
Invalidating Package Spec WEBUTIL_C_API......
Invalidating Package Spec JAVA_SYSTEM......
Invalidating Package Spec JAVA_APPSERV_READER......
Invalidating Package Spec DELIMSTR......
Invalidating Package Spec WEBUTIL_FILE......
Invalidating Package Spec JAVA_APPSERV_WRITER......
Invalidating Package Spec WEBUTIL_DB_LOCAL......
Invalidating Package Spec JAVA_FILE......
Invalidating Package Spec WEBUTIL_FILE_TRANSFER......
Invalidating Package Spec WEBUTIL_HOST......
Invalidating Package Spec WEBUTIL_SEPARATEFRAME......
Invalidating Package Spec WEBUTIL_CORE......
Invalidating Package Spec WEBUTIL_SESSION......
Invalidating Package Spec WEBUTIL_UTIL......
Invalidating Package Body WEBUTIL_UTIL......
Invalidating Package Body WEBUTIL_SESSION......
Invalidating Package Body WEBUTIL_SEPARATEFRAME......
Invalidating Package Body WEBUTIL_HOST......
Invalidating Package Body WEBUTIL_FILE_TRANSFER......
Invalidating Package Body WEBUTIL_FILE......
Invalidating Package Body WEBUTIL_DB_LOCAL......
Invalidating Package Body WEBUTIL_C_API......
Invalidating Package Body WEBUTIL_CORE......
Invalidating Package Body WEBUTIL_CLIENTINFO......
Invalidating Package Body WEBUTIL_BROWSER......
Invalidating Procedure Body SHOW_WEBUTIL_INFORMATION......
Invalidating Package Body JAVA_SYSTEM......
Invalidating Package Body JAVA_FILE......
Invalidating Package Body JAVA_EXCEPTION......
Invalidating Package Body JAVA_APPSERV_WRITER......
Invalidating Package Body JAVA_APPSERV_READER......
Invalidating Package Body DELIMSTR......
Invalidating Package Body CLIENT_WIN_API_PRELOAD......
Invalidating Package Body CLIENT_WIN_API_ENVIRONMENT......
Invalidating Package Body CLIENT_WIN_API_DEBUG......
Invalidating Package Body CLIENT_WIN_API......
Invalidating Package Body CLIENT_TOOL_ENV......
Invalidating Package Body CLIENT_TEXT_IO......
Invalidating Package Body CLIENT_OLE2......
Invalidating Package Body CLIENT_IMAGE......
Invalidating Procedure Body CLIENT_HOST......
Invalidating Function Body CLIENT_GET_FILE_NAME......
Compiling Package Spec CLIENT_IMAGE......
Compiling Package Spec CLIENT_OLE2......
Compiling Package Spec CLIENT_TEXT_IO......
Compiling Package Spec CLIENT_TOOL_ENV......
Compiling Package Spec CLIENT_WIN_API_DEBUG......
Compiling Package Spec CLIENT_WIN_API......
Compiling Package Spec CLIENT_WIN_API_ENVIRONMENT......
Compiling Package Spec CLIENT_WIN_API_PRELOAD......
Compiling Package Spec JAVA_EXCEPTION......
Compiling Package Spec WEBUTIL_BROWSER......
Compiling Package Spec WEBUTIL_CLIENTINFO......
Compiling Package Spec JAVA_SYSTEM......
Compiling Package Spec JAVA_APPSERV_READER......
Compiling Package Spec DELIMSTR......
Compiling Package Spec WEBUTIL_FILE......
Compiling Package Spec JAVA_APPSERV_WRITER......
Compiling Package Spec WEBUTIL_DB_LOCAL......
Compiling Package Spec JAVA_FILE......
Compiling Package Spec WEBUTIL_FILE_TRANSFER......
Compiling Package Spec WEBUTIL_HOST......
Compiling Package Spec WEBUTIL_SEPARATEFRAME......
Compiling Package Spec WEBUTIL_CORE......
Compiling Package Spec WEBUTIL_SESSION......
Compiling Package Spec WEBUTIL_UTIL......
Compiling Package Body WEBUTIL_UTIL......
Compiling Package Body WEBUTIL_SESSION......
Compiling Package Body WEBUTIL_SEPARATEFRAME......
Compiling Package Body WEBUTIL_HOST......
Compiling Package Body WEBUTIL_FILE_TRANSFER......
Compiling Package Body WEBUTIL_FILE......
Compiling Package Body WEBUTIL_DB_LOCAL......
Compiling Package Body WEBUTIL_C_API......
Compiling Package Body WEBUTIL_CORE......
Compiling Package Body WEBUTIL_CLIENTINFO......
Compiling Package Body WEBUTIL_BROWSER......
Compiling Procedure Body SHOW_WEBUTIL_INFORMATION......
Compiling Package Body JAVA_SYSTEM......
Compiling Package Body JAVA_FILE......
Compiling Package Body JAVA_EXCEPTION......
Compiling Package Body JAVA_APPSERV_WRITER......
Compiling Package Body JAVA_APPSERV_READER......
Compiling Package Body DELIMSTR......
Compiling Package Body CLIENT_WIN_API_PRELOAD......
Compiling Package Body CLIENT_WIN_API_ENVIRONMENT......
Compiling Package Body CLIENT_WIN_API_DEBUG......
Compiling Package Body CLIENT_WIN_API......
Compiling Package Body CLIENT_TOOL_ENV......
Compiling Package Body CLIENT_TEXT_IO......
Compiling Package Body CLIENT_OLE2......
Compiling Package Body CLIENT_IMAGE......
Compiling Procedure Body CLIENT_HOST......
Compiling Function Body CLIENT_GET_FILE_NAME......
Done.
[oracle@appserver ~]$
here is the code how i compile webutil.. its done sucessfully. -
Object Invalid error in PL/SQL
Hi,
This is Pat.
I am writing simple queries on my oracle 8i
and they are executing correctly.
But when i include them in a procedure the procedure
gets created with compilation errors.
also when i execute the procedure it gives me an error
saying :
OBJECT.<login_name>.<procudure_name> is invalid.
Since the query is running on the SQL prompt it has no problems
and the syntax for a procedure is made by juss
adding
create procedure procedureone
as
begin
<query>
end;
i donno y isnt it working..??
any insights.
plzz help.I am executing the select statements on SQL prompt and i am getting the desired output.
but i am selecting several attributes of the table and displaying them after implementing a join with other tables.
i have not included INTO in the select clause.
If i use into then how can i display all the tuples of the results...??
I will get only one value into the variable after writing INTO.
do i need to use a loop.
here is a similar query i am tryin to execute which doesnt work when put inside a procedure.
create or replace procedure abc
AS
BEGIN
select one,two,three,(four*five) AS Total
from xyz,pqr
where <join of 2 tables>
END;
how do i use INTO with this and still display all the results..??
plzz help
Maybe you are looking for
-
Invoice Qty Vs PO Qty and Invoice Amount Vs PO Value - PO Line item same
I want to control as per below. 1) Invoice Verification should not be allowed ( GR based & Non-GR Based IV - Both scenarios ) if total invoice qty is more than po total qty against PO same line item. e.g., in line item 10, Material "M1" is having qty
-
DATETIME To Format mm/dd/yyyy hh:mm am/pm
I have a column in a database set as a DATETIME datatype, when I select it, I want to return it as: mm/dd/yyyy hh:mm am or pm. How in the world can I do this? I looked at the function CONVERT() and it doesnt seem to have this format as a valid type.
-
Videos sent via mms are not playing on iPhone 4s.
My nephew has iphone 4s just like me. when i send him mms videos he says they won't play. I send the same video to my husband's 4s and no problem. I think my nephew's settings are the issue but I am not sure what to tell him. He lives in another s
-
This topic has been moved to Overclockers & Modding Corner. https://forum-en.msi.com/index.php?topic=132009.0
-
I lost my hardrive, got new computer, reloaded itunes, tried to sync with ipod nano and only my purchased music shows up - how do I get my downloaded music back. message says ipod is sync'd with other library - the one I lost on my old computer! Hel