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,
Gianluca
hello,
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
Similar Messages
-
Error with Oracle10G Sql Browser while execute package with exec clause
Dear Experts,
Please tell me why i am getting Error ORA- 00900 while executing this script with Oracle10G Sql Browserbut not getting error with Oracle9i Sql Browser
var r1 refcursor;
var r2 refcursor;
exec ETKT_CANCEL_TICKET_PCK.GET_DATA(:r1,:r2,'05052007/00000003/0000994','23');It would be interesting to know, what Sql Browser is.
-
Hi
If I run PL/SQL block
DECLARE
CURSOR C1 is SELECT CLM_CASE_NO FROM CLAIM_OBJECT.CLM_INVLVD_PRTY_T where CLM_CASE_NO=XXXX;
BEGIN
FOR X in C1 loop
INSERT INTO POSTL_ADDRS_ARCHIVE P (SELECT A.* FROM CLAIM_OBJECT.POSTL_ADDRS A, CLAIM_OBJECT.CLM_INVLVD_PRTY_T C WHERE
C.CLNT_NO = A.CLNT_NO AND C.CURR_ROW_IND='A' AND C.CLM_CASE_NO =X.CLM_CASE_NO );
end loop;
end;
there is no error with the above block
If I remove where clause in cursor and run block
DECLARE
CURSOR C1 is SELECT CLM_CASE_NO FROM CLAIM_OBJECT.CLM_INVLVD_PRTY_T;
BEGIN
FOR X in C1 loop
INSERT INTO POSTL_ADDRS_ARCHIVE P (SELECT A.* FROM CLAIM_OBJECT.POSTL_ADDRS A, CLAIM_OBJECT.CLM_INVLVD_PRTY_T C WHERE
C.CLNT_NO = A.CLNT_NO AND C.CURR_ROW_IND='A' AND C.CLM_CASE_NO =X.CLM_CASE_NO );
end loop;
end;
ERROR at line 1:
ORA-01013: user requested cancel of current operation
ORA-06512: at line 12
I searched for ORA-06512
Cause:
This error message indicates the line number in the PLSQL code that the error resulted.
SELECT CLM_CASE_NO FROM CLAIM_OBJECT.CLM_INVLVD_PRTY_T has over 800,672 records.
SELECT CLM_CASE_NO FROM CLAIM_OBJECT.CLM_INVLVD_PRTY_T where CLM_CASE_NO=XXXX; has 2 records.
I am not not understanding why block 2 is throwing error (with no where clause in cursor)
Any help will be greatly appreciated
Thanks in advanceAs the error message indicates clearly the process was cancelled as you pressed CTRL+C. And yes you can’t see any data you insert in one session from other session until it gets committed. And as others have mentioned row by row operation is very expensive think about revising your approach.
Instead of having a cursor why don’t you join it directly in you select in the insert statement and try?
Thanks,
Karthick.
Message was edited by:
karthick_arp -
CDS-11025 Error: Oracle Designer generation error with PL/SQL package
Hi friends,
We tried to generate a database package from Oracle Designer (10.1.2.6) and getting "syntax errors" but the package has no syntax errors when we copy and paste the code and compile in TOAD (10.6)
Error from Designer:
Server Generator 10.1.2.6 (Build 10.1.2.11.12) , Wed Oct 17 10:58:43 2012
Copyright (c) Oracle Corporation 1995, 2010. All rights reserved.
CDS-11025 Error: The PL/SQL within PACKAGE BODY AVP_WATER_ANALYSIS_V has syntax errors - At token 'END', around:
...te_dist.VLV_INTL_ID;
END LOOP;
Processing Complete: 1 error(s), 0 warning(s)
code snippet from the Error message:
FOR rec_update_dist IN cur_update_dist (i_anlyd_intl_id,
i_iterd_intl_id,
i_phsed_intl_id,
i_wtrc_intl_id)
LOOP
UPDATE AVP_VALVE AvpValve
SET AvpValve.DIST_FROM_EDGE = rec_update_dist.DIST_FROM_EDGE
WHERE AvpValve.ANLYD_INTL_ID = rec_update_dist.ANLYD_INTL_ID
AND AvpValve.ITERD_INTL_ID = rec_update_dist.ITERD_INTL_ID
AND AvpValve.PHSED_INTL_ID = rec_update_dist.PHSED_INTL_ID
AND AvpValve.WTRC_INTL_ID = rec_update_dist.WTRC_INTL_ID
AND AvpValve.VLV_INTL_ID = rec_update_dist.VLV_INTL_ID;
END LOOP;
Thanks for any feedback,
JimFound the problem.
It was an issue with the CURSOR with the SELECT ... FROM (SELECT CASE WHEN THEN ELSE END). After swithing to the DECODE statement, Designer is able to generate the package.
CASE
WHEN ISOLATION_IND = 'Y' THEN
'A'
WHEN OPERATED_IND = 'Y' THEN
'B'
ELSE
'C'
END
decode(ISOLATION_IND,'Y','A',decode(OPERATED_IND,'Y','B','C'))
However, still strange to me that Designer doesn't like the CASE as part of SELECT.
Edited by: user476620 on Oct 18, 2012 8:13 PM -
Error with PL/SQL xmlGen if unlimited rows
If I run xmlgen server side from pl/sql and I dont specify a limit on the rows I get the following error
xml version=1.0
ERROR
oracle.xml.sql.OracleXMLSQLEception
ORA-00600: internal error code, arguments: [kdlseek-kgbtnscb]
ERROR
If limit the rows it works ok, the generated xml is not that big only about 600 rows
Any ideas on whast the problem
RobI too get the same problem. Has anyone come up with a solution, not a workaround?
SQL> select xmlgen.getXML('select * from dict where table_name like ''%ROLE%''') from dual;
XMLGEN.GETXML('SELECT*FROMDICTWHERETABLE_NAMELIKE''%ROLE%''')
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<TABLE_NAME>DBA_ROLES</T
SQL> select xmlgen.getXML('select * from dict') from dual;
select xmlgen.getXML('select * from dict') from dual
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
oracle.xml.sql.OracleXMLSQLException: ORA-00600: internal error code,
arguments: [kdlseek-kgbtnscb], [], [], [], [], [], [], []
ORA-06512: at "SCOTT.XMLGEN", line 465
ORA-06512: at "SCOTT.XMLGEN", line 456
ORA-06512: at line 1
SQL> select count(*) from dict;
COUNT(*)
851
SQL> describe dict;
Name Null? Type
TABLE_NAME VARCHAR2(30)
COMMENTS VARCHAR2(4000)
SQL>
shared_pool_size = 52428800 # 50MB
large_pool_size = 614400
java_pool_size = 41943040 # 40MB
W2K V5 SP1, 8.1.6 RLSE2 & XSU1.2
Steve.
null -
BT2010 Installed Cum Update Packs for Adapters and getting run-time errors with WCF-SQL
The process has been working fine for months. Then we installed Cum Update packs to BT2010 (I'll get the exact C.U.'s from our admin guy) and last night got probably 20 errors similar to below.
- Installed CU6 for BT2010
- Installed CU3 for LOB (Adapters)
The SQL stored proc returns a mix of strings, integers, Guids, and dates; the BizTalk schema looks like matches perfectly. The stored proc runs fine in SSMS.
Got two errors for each, 1 in XLANG/s for the orchestration, and 1 for the Send port that calls the WCF-SQL adapter from the orchestration, and also 1 warning.
NOTE: This orchestration runs every 15 minutes 24x7. It calls the Stored Proc to find out which extracts it needs to create. Most all the extracts run at night. So if I run the stored proc during the day, it normally returns an empty result
set. Yet, the error below is happening every 15 minutes, even when the result set is empty. How can it generate a data conversion error when there is no data to be converted?
ORCHESTRATION/XLANG ERROR:
xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Common.Extract.Orchestrations.EFSRExtractHandler(2b35190e-5f11-e360-9ae8-daaf0372cbc3)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: dc354922-73ef-46fc-ac3d-dbf793e5aaf8
Shape name:
ShapeId:
Exception thrown from: segment -1, progress -1
Inner exception: An error occurred while processing the message, refer to the details section for more information
Message ID: {066027B8-4750-4D63-A746-1390E9959E49}
Instance ID: {5A978538-5DD7-40D1-8826-D0486D129F84}
Error Description: System.InvalidCastException: Failed to convert parameter value from a String to a Guid. ---> System.InvalidCastException: Invalid cast from 'System.String' to 'System.Guid'.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
--- End of inner exception stack trace ---
Server stack trace:
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
Exception type: XlangSoapException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void VerifyTransport(Microsoft.XLANGs.Core.Envelope, Int32, Microsoft.XLANGs.Core.Context)
The following is a stack trace that identifies the location where the exception occured
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.VerifyTransport(Envelope env, Int32 operationId, Context ctx)
at Microsoft.XLANGs.Core.Subscription.Receive(Segment s, Context ctx, Envelope& env, Boolean topOnly)
at Microsoft.XLANGs.Core.PortBase.GetMessageIdForSubscription(Subscription subscription, Segment currentSegment, Context cxt, Envelope& env, CachedObject location)
at Common.Extract.Orchestrations.EFSRExtractHandler.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
SEND PORT ERROR:
A message sent to adapter "WCF-Custom" on send port "Send_SQL_Orch_Call_GetAirportsForExtract" with URI "mssql://QADBAlias.datacenter.local//QTAviation?" is suspended.
Error details: System.InvalidCastException: Failed to convert parameter value from a String to a Guid. ---> System.InvalidCastException: Invalid cast from 'System.String' to 'System.Guid'.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
--- End of inner exception stack trace ---
Server stack trace:
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
MessageId: {C1FB3913-42EB-4957-9289-16D03B02674E}
InstanceID: {46C9D190-902F-48CE-86CF-D8C3C5B8944D}Hi,
About the error System.InvalidCastException: Failed to convert parameter value from a String to a Guid
, maybe the field on the database is varchar(string type).
And you can refer to the similar discussion:
http://stackoverflow.com/questions/12816641/failed-to-convert-parameter-value-from-string-to-guid
Hope it can help you.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi ,
I have written a package specification given below :
create or replace PACKAGE BILL_PACKAGE AS
storeId varchar2(5);
startDate varchar2(10);
FUNCTION F_Bill(str_id IN tel_tr_ltm_bl_py.id_str_rt%TYPE,ws_id IN tel_tr_ltm_bl_py.id_ws%TYPE,v_date IN tel_tr_ltm_bl_py.dc_dy_bsn%TYPE) RETURN boolean;
END BILLPAYPACKAGE;
I have written the package body also .Now when i am calling the function F_Bill , I am gettin this error :
PLS-00201: identifier 'BILL_PACKAGE.STARTDATE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
ORA-06550: line 3, column 1:
PLS-00201: identifier 'BILL_PACKAGE.STOREID' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
This same package is running fine on another local database.
What could be the reason for this?
Is this an acess issue ?In db which we are getting an error , we are using a user 'ConUser' to connect to a schema 'b_owner'.
How can we check this if this is a privilege issue.
Thanks!>
This same package is running fine on another local database.
What could be the reason for this?
Is this an acess issue ?In db which we are getting an error , we are using a user 'ConUser' to connect to a schema 'b_owner'.
How can we check this if this is a privilege issue.The user "ConUSer" needs execute privileges for the pacakge.
Also it depends how he calls the package or the variables in it.
You can check the privs with
select * from all_tab_privs where table_name = 'BILL_PACKAGE';this must be run as user ConUser.
You could also have a problem with name resolution. The name of the package is not BILL_PACKAGE. It is "b_owner.BILL_PACKAGE".
If you omit the schema name then the current user is tried. So if you call BILL_PACKAGE then this is translated into "ConUSer.BILL_PACKAGE".
You can change this by creating a synonym like
create synonym bill_package for b_owner.bill_package; -
hi,
I am having having problems with the getArray() of oracle.sql.ARRAY.
Here are the details:
Oracle Database - 9.2.0.6. The JDBC driver used -10.2.0.1 jar.(the latest available).
I am calling a stored procedure from java, that has out param as a collection (VARRAY) of a user defined type.
The stored procedure works fine, if the user/schema used to connect,contains actual type, and i am able to extract the user defined object from the oracle.sql.ARRAY, via getArray().
But if i use a different user to connect which has public synonyms and execute rights to the actual type, i get the following error:
java.sql.SQLException: Internal Error
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
at oracle.sql.ARRAY.getArray(ARRAY.java:370)
The problem is happening because we have 2 different users to connect to the database. one is the dba user, which contains all the types, packages and other one the application user, which we are supposed to use, to connect via java. This application user does have access to types via public synonym, but it gives the above mentioned error.
Please help :(.
Regards,
Gaurav.Hi avi,
Even I am getting the same error inspite of preceding the type name with the same user who has created the type.
It has displayed the array length.When I am trying to fetch each array, I am getting the error.
ARRAY simpleArray = (ARRAY) cs.getObject(3);
System.out.println("Array is of length " + simpleArray.length()); ********************** The above stmt prints 2 records ******************
But it goes to exception in the foll stmt..
Object [] objArrStructArray = null;
try{
objArrStructArray = (Object[]) simpleArray.getArray();
}catch(SQLException e){
e.printStackTrace();
Do u know abt this?
The foll is the error which I am getting.
java.sql.SQLException: Internal Error
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
at oracle.sql.ARRAY.getArray(ARRAY.java:353)
at com.telstra.plo.data.NetworkDAO.findCablesInBuffer(NetworkDAO.java:730)
at com.telstra.plo.data.NetworkDAOTest.testFindCablesInBuffer(NetworkDAOTest.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Thanks
Archana -
Problems when tyring to continue install: Errors with grant.sql
Going through the install procedure for PeopleTools 8.50 with PeopleSoft HRMS 9.1. Running Windows XP Pro SP3. Install on single machine for testing purposes.
I ran scripts in Data Mover to populate the PeopleSoft database tables. I did this through Database Setup for PeopleSoft HRCS Database and selected Demo for the database type. I have checked all the log files and everything completed successfully.
Now I am trying to run grant.sql, but I'm getting errors telling me none of the tables exist. I have checked my services and the instance is running. I am attempting to run this script after a shut down of my machine so I could simply be missing a service or something. Not sure what I should be looking for...
Thanks in advance...
Edited by: ibrahim2k2 on Nov 19, 2009 8:27 AMNow I am trying to run grant.sql, but I'm getting errors telling me none of the tables exist. Which user are you connected with when running the script ?
Nicolas. -
i am getting multiple errors when trying to insert data into a table through pl/sql declaration
here are the errors:
--Procedure to insert the values into section table(ex1.sql)
declare
v_section %type;
begin
v_section.SECTIONNO:=&no;
v_section. DESCRIPTION:='&desc';
v_section.SECTION_HEAD_EMPNO:=&empno
insert into section values v_section;
end;
/When i execute the above pl/sql program i am getting errors:
SQL> @ex1
Enter value for no: 10
old 4: v_section.SECTIONNO:=&no;
new 4: v_section.SECTIONNO:=10;
Enter value for desc: Sales
old 5: v_section. DESCRIPTION:='&desc';
new 5: v_section. DESCRIPTION:='Sales';
Enter value for empno: 1005
old 6: v_section.SECTION_HEAD_EMPNO:=&empno
new 6: v_section.SECTION_HEAD_EMPNO:=1005
v_section %type;
ERROR at line 2:
ORA-06550: line 2, column 12:
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.
ORA-06550: line 7, column 1:
PLS-00103: Encountered the symbol "INSERT" when expecting one of the following:
* & = - + ; < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like
between || multiset member SUBMULTISET_
The sBTW,*section* table is:
SQL> desc section;
Name Null? Type
SECTIONNO NOT NULL NUMBER(2)
DESCRIPTION VARCHAR2(30)
SECTION_HEAD_EMPNO NUMBER(4)Kindly,correct me where i am doing wrong
Thanks in advance!!Hi,
where is the semicolon after v_section.DESCRIPTION :=&empno ?
---it should be section%rowtype not simply %rowtype
Just copy paste the below code. It will work.
DECLARE
v_section SECTION%ROWTYPE;
BEGIN
v_section.SECTIONNO := &NO;
v_section.DESCRIPTION := '&desc';
v_section.SECTION_HEAD_EMPNO := &empno;
INSERT INTO SECTION
VALUES v_section;
END;
/Test
SQL> CREATE TABLE SECTION
2 (
3 SECTIONNO NUMBER (2) NOT NULL,
4 DESCRIPTION VARCHAR2 (30),
5 SECTION_HEAD_EMPNO NUMBER (4)
6 );
Table created.
SQL> DECLARE
2 v_section SECTION%ROWTYPE;
3 BEGIN
4 v_section.SECTIONNO := &NO;
5 v_section.DESCRIPTION := '&desc';
6 v_section.SECTION_HEAD_EMPNO := &empno;
7
8 INSERT INTO SECTION
9 VALUES v_section;
10 END;
11 /
Enter value for no: 10
old 4: v_section.SECTIONNO := &NO;
new 4: v_section.SECTIONNO := 10;
Enter value for desc: sales
old 5: v_section.DESCRIPTION := '&desc';
new 5: v_section.DESCRIPTION := 'sales';
Enter value for empno: 1005
old 6: v_section.SECTION_HEAD_EMPNO := &empno;
new 6: v_section.SECTION_HEAD_EMPNO := 1005;
PL/SQL procedure successfully completed.
SQL> select * from section;
SECTIONNO DESCRIPTION SECTION_HEAD_EMPNO
10 sales 1005
SQL> G.
Edited by: Ganesh Srivatsav on Apr 8, 2011 2:54 PM -
I've been trying fresh installation of SQL Server 2008 R2 enterprise on Windows Server 2012 R2 standard VM server several times for two weeks, but always get the error "Attempted to perform an unauthorized operation". At first, I attempted
to install all features, but failed several times. So I decided to try install just Database Engine service, and still fail at the SqlBrowserConfigAction_Install_ConfigNonRC_Cpu32, with the error "Attempted to perform an unauthorized operation".
I remote login to server with my admin domain account. This account is in server local Administrators group. I
1. Right-click on setup.exe file | properties | Compatibility tab | select compatibility to Windows 8.Then click OK.
2. Right-click on setup.exe file | Run as Administrator, to start the Installation Center.
I have the document of my installation steps and zip file of the installation logs, if you need to take a look.
Appreciate for any help!
ntthHi ntth,
"Attempted to perform an unauthorized operation"
The above error is always related to the Windows account SID mapping. I recommend you login into Windows using another Windows account which has administrative privileges and run SQL Server setup using that Windows account.
Besides, please note that we need to apply SQL Server 2008 R2 Service Pack 2 or a later update when installing SQL Server Windows Server 2012 R2. For more information, please review this
KB article.
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here.
Lydia Zhang
TechNet Community Support -
We got a lot of LaserJet m1212nf printers, installed the SAME driver version on server and desktops and nothing is printed using Easy Print. No errors, no messages but nothing is printed, only when a test page is printed the server show an alert: "No test page can be printed".
After that we try to use the HP driver instead of the TS Easy Print, forcing the group policy to use the Hp driver first. But the terminal server always use the Easy Print driver so we are in the same way.
So we try another thing... THE XPS DRIVER... but it doesn't works on the desktop PC, we try to print a test page from the printer desktop properties but "No test page can be printed" is shown... my god!!!
WHAT CAN WE DO??
This question was solved.
View Solution.Hello,
Thanks for the post. I've included a couple of links below, one to a document and one to a software download. Hopefully between these two we should be able to get this installed and get you up and running. Good Luck!
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01998962&cc=us&dlc=en&lc=en&product=3965849&tmp...
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=Im-81123-2&cc=us&dlc=en&lc=en&...
I worked for HP but my posts and replies are my own....Thank you!
*Say thanks by clicking the *Kudos!* which is on the left*
*Make it easier for other people to find solutions, by marking my answer with (Accept as Solution) if it solves your issue.* -
Error with Installation of SAP R/3 4.6C on Windows 64 Bit
Hi,
we have the following problem by installing the SAP R/3 4.6C on Windows 64 Bit:
DBDBSLTESTCONNECT_NT_IND , SysDbslConnect: 100
Cannot connect to DB, rc = 8192
Can some one help me?
What is the user connecting during the installation?
Thank you!File DATABASE.R3S contains the following phases in 4.6C SR2. This file is usually same in most releases. This file must be edited befure running with R3SETUP. Here all the phases.
Phases marked with BOLD are not necessary and MUST NOT BE RUNNED.
You have to put "STATUS=OK" line at the end of all these phases by using R3EDIT, SAPPAD or NOTEPAD.
10=DATABASEINSTANCE_NT_MSS
20=DBCOMMONDBENV_NT_MSS
30=CALCRAM_NT_MSS
40=CDSERVERBASE_NT_MSS
50=OSGROUPSAPLOCAL_NT_IND
60=OSGROUPSAPLOCALADMIN_NT_IND
70=OSGROUPSAPGLOBAL_NT_IND
80=OSUSERSIDADM_NT_IND
90=OSUSERSIDADMPASSWD_NT_IND
100=OSUSERSIDADMRIGHTS_NT_IND
110=DBOSUSERMSSXP_NT_MSS
120=DBOSUSERMSSXPPASSWD_NT_MSS
130=GETDBSIZEKEYS_IND_IND
140=DBBUILDTEMPDB_NT_MSS
150=DBBUILD_NT_MSS
160=DBPOSTBUILD_NT_MSS
170=DBPRELOAD_NT_MSS
180=DBMULTISCHEMA_NT_MSS
190=DBDBSLTESTCONNECT_NT_IND
200=DBR3LOADEXECDUMMY_IND_IND
210=DBR3LOADEXEC_NT_MSS
220=DBR3LOADVIEWDUMMY_IND_IND
230=DBR3LOADVIEW_NT_IND
240=DBPOSTLOAD_NT_MSS
250=DBCONFIGURATION_NT_MSS
260=DBPROCEDURES_NT_MSS
270=DBR3LICENSECREATE_NT_MSS
280=DIPGNTAB_NT_IND
290=EXITMNLSSTARTR3_NT_IND
300=RFCRSWBOINI_IND_IND
310=RFCRADDBDIF_IND_IND320=QUERIESFINISHED_NT_IND -
SQL Error [ORA-00933: SQL command not properly ended
I have following installed:
7.9.6 BI Apps
10.1.3.4 DAC
8.6.0 Informatica
Container JDE Enterprise 9.0
Out of 211 tasks 69 tasks executed successfully.
Error in workflow [SDE_JDE_PartyOrganisationDimension_Full].
I have checked the session log file and understand that there is error with the SQL statement.
Since it is Pre-built, the workflow should have run properly with correct SQl statement. But in this case it is not working.
Is it because the SQL statement is too long?
Any help will be greatly appreciated.
Part of the log file
RR_4035 : SQL Error [
ORA-00933: SQL command not properly ended
Database driver error...
Function Name : Execute
SQL Stmt : SELECT
F0101.ABAN8,F0101.ABALKY,F0101.ABTAX,F0101.ABALPH,F0101.ABMCU,F0101.ABSIC,F0101.ABAT1, F0101.ABTAXC, F0101.ABATP, F0101.ABATR,F0101.ABEFTB,F0101.ABAC01,
F0101.ABAC02, F0101.ABAC03, F0101.ABAC04, F0101.ABAC05, F0101.ABAC06, F0101.ABAC07, F0101.ABAC08, F0101.ABAC09, F0101.ABAC10, F0101.ABAC11,
F0101.ABAC12, F0101.ABAC13, F0101.ABAC14, F0101.ABAC15, F0101.ABAC16, F0101.ABAC17, F0101.ABAC18, F0101.ABAC19, F0101.ABAC20, F0101.ABAC21, F0101.ABAC22, F0101.ABAC23,
F0101.ABAC24, F0101.ABAC25, F0101.ABAC26, F0101.ABAC27, F0101.ABAC28, F0101.ABAC29, F0101.ABAC30,F0101.ABUSER, F0101.ABUPMJ,F0101.ABUPMT,F0101.ABTICKER, F0101.ABEXCHG, F0101.ABDUNS,
F0101.ABNOE,F0101.ABGROWTHR,F0101.ABYEARSTAR,F0101.ABREVRNG, D.FaxPhoneArea, d.Phonearea, D.Fax AS Fax ,D.Phone As Phone,D.WPUPMJ AS WPUPMJ,R.Email AS Email,R.Internet As Internet,R.EAupmj As EAUPMJ,F0111.WWAN8,F0111.WWIDLN,
F0111.WWSLNM,F0111.WWGNNM,F0111.WWMDNM,F0111.WWSRNM,F0111.WWUSER,F0111.WWUPMJ,F0111.WWUPMT,F0111.WWNTYP,F0111.WWNICK,F0111.WWPCM,F0116.ALAN8,
F0116.ALEFTB,F0116.ALADD1,F0116.ALADD2,F0116.ALADD3,F0116.ALADD4, F0116.ALADDZ, F0116.ALCTY1,F0116.ALADDS,F0116.ALCTR, F0116.ALUPMJ,F0116.ALUPMT,F03012.AIAN8, F03012.AICO,F03012.AIMCUR,F03012.AICRCD,F03012.AIACL,
F03012.AIARPY,F03012.AIDB,F03012.AICRCA,F03012.AIASTY,F03012.AISPYE,F03012.AIOPY,F03012.AIPOPN,F03012.AIDAOJ,F03012.AIAN8R,F03012.AICPGP,F03012.AIFRTH,
F03012.AIMAN8,F03012.AIUPMJ,F03012.AIUPMT, F03012.AICUSTS,F03012.AITERRID, F03012.AIDTEE, F0401.A6AN8, F0401.A6MCUP, F0401.A6CRRP,F0401.A6CRCA, F0401.A6AN8R,F0401.A6CPGP, F0401.A6FRTH, F0401.A6UPMJ,F0401.A6UPMT, CAST(F0101.ABAC03 AS CHAR(10)) AS FLEX_ATTRIB_1_CHAR,
CAST(F0101.ABAC23 AS CHAR(10)) AS FLEX_ATTRIB_2_CHAR,
CAST(F0101.ABAC05 AS CHAR(10)) AS FLEX_ATTRIB_3_CHAR,
CAST(F0101.ABAC15 AS CHAR(10)) AS FLEX_ATTRIB_4_CHAR,
CAST(F0101.ABAC09 AS CHAR(10)) AS FLEX_ATTRIB_5_CHAR,
CAST(F0101.ABAC11 AS CHAR(10)) AS FLEX_ATTRIB_6_CHAR,
CAST(F0101.ABAC19 AS CHAR(10)) AS FLEX_ATTRIB_7_CHAR,
CAST(F0101.ABAC21 AS CHAR(10)) AS FLEX_ATTRIB_8_CHAR,
CAST(F0101.ABAC27 AS CHAR(10)) AS FLEX_ATTRIB_9_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_10_CHAR,
CAST(F0101.ABAC17 AS CHAR(10)) AS FLEX_ATTRIB_11_CHAR,
CAST(F0101.ABAC06 AS CHAR(10)) AS FLEX_ATTRIB_12_CHAR,
CAST(F0101.ABAC08 AS CHAR(10)) AS FLEX_ATTRIB_13_CHAR,
CAST(F0101.ABAC14 AS CHAR(10)) AS FLEX_ATTRIB_14_CHAR,
CAST(F0101.ABAC22 AS CHAR(10)) AS FLEX_ATTRIB_15_CHAR,
CAST(F0101.ABAC28 AS CHAR(10)) AS FLEX_ATTRIB_16_CHAR,
CAST(F0101.ABAC18 AS CHAR(10)) AS FLEX_ATTRIB_17_CHAR,
CAST(F0101.ABAC10 AS CHAR(10)) AS FLEX_ATTRIB_18_CHAR,
CAST(F0101.ABAC20 AS CHAR(10)) AS FLEX_ATTRIB_19_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_20_CHAR,
CAST(F0101.ABAC30 AS CHAR(10)) AS LINE_OF_BUSINESS,
CAST(F0101.ABAC14 AS CHAR(10)) AS REGION,
CAST(NULL AS CHAR(10)) AS ACCNT_AHA_NUM,
CAST(F0101.ABAC07 AS CHAR(10)) AS ACCNT_CLASS,
CAST(F0101.ABAC11 AS CHAR(10)) AS ACCNT_HIN_NUM,
CAST(F0101.ABAC02 AS CHAR(10)) AS ACCNT_REGION,
CASt(F0101.ABAC08 AS CHAR(10)) AS ACCNT_VALUE,
CAST(F0101.ABAC16 AS CHAR(10)) AS CUST_CAT_CODE, '0' AS X_CUSTOM
from F0101
INNER JOIN F03012 ON F0101.ABAN8 = F03012.AIAN8
LEFT OUTER JOIN F0401 ON F0101.ABAN8 = F0401.A6AN8
LEFT OUTER JOIN F0116 ON F0101.ABAN8 = F0116.ALAN8 AND F0101.ABEFTB = F0116.ALEFTB
LEFT OUTER JOIN F0111 ON F0101.ABAN8 = F0111.WWAN8 AND F0111.WWIDLN =
LEFT OUTER JOIN (select a.WPAN8 as an8,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) FaxPhoneArea,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Fax,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Phone,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) Phonearea,
max(wpupmj) as WPUPMJ
from F0115 a,
(select WPAN8,WPPHTP ,min(WPRCK7) MinWPRCK7 from F0115
group by WPAN8,WPPHTP
) b
where a.WPAN8=b.WPAN8 and a.wpidln =0
group by a.WPAN8)D on f0101.aban8 = D.an8
LEFT OUTER JOIN (SELECT P.EAAN8 as an8,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Email,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Internet,Max(eaupmj) as EAupmj
FROM F01151 P,
(SELECT EAAN8,EAETP,MIN(EARCK7) MinRck7E from f01151
group by eaan8,eaemal,eaetp)Q
where
P.EAAN8 = Q.EAAN8 and P.EAIDLN =
GROUP BY P.EAAN8)R on f0101.aban8 = R.an8
union
SELECT
F0101.ABAN8,F0101.ABALKY,F0101.ABTAX,F0101.ABALPH,F0101.ABMCU,F0101.ABSIC,F0101.ABAT1, F0101.ABTAXC, F0101.ABATP, F0101.ABATR,F0101.ABEFTB,F0101.ABAC01,
F0101.ABAC02, F0101.ABAC03, F0101.ABAC04, F0101.ABAC05, F0101.ABAC06, F0101.ABAC07, F0101.ABAC08, F0101.ABAC09, F0101.ABAC10, F0101.ABAC11,
F0101.ABAC12, F0101.ABAC13, F0101.ABAC14, F0101.ABAC15, F0101.ABAC16, F0101.ABAC17, F0101.ABAC18, F0101.ABAC19, F0101.ABAC20, F0101.ABAC21, F0101.ABAC22, F0101.ABAC23,
F0101.ABAC24, F0101.ABAC25, F0101.ABAC26, F0101.ABAC27, F0101.ABAC28, F0101.ABAC29, F0101.ABAC30,F0101.ABUSER, F0101.ABUPMJ,F0101.ABUPMT,F0101.ABTICKER, F0101.ABEXCHG, F0101.ABDUNS,
F0101.ABNOE,F0101.ABGROWTHR,F0101.ABYEARSTAR,F0101.ABREVRNG, D.FaxPhoneArea, d.Phonearea, D.Fax AS Fax ,D.Phone As Phone,D.WPUPMJ AS WPUPMJ,R.Email AS Email,R.Internet As Internet,R.EAupmj As EAUPMJ,F0111.WWAN8,F0111.WWIDLN,
F0111.WWSLNM,F0111.WWGNNM,F0111.WWMDNM,F0111.WWSRNM,F0111.WWUSER,F0111.WWUPMJ,F0111.WWUPMT,F0111.WWNTYP,F0111.WWNICK,F0111.WWPCM,F0116.ALAN8,
F0116.ALEFTB,F0116.ALADD1,F0116.ALADD2,F0116.ALADD3,F0116.ALADD4, F0116.ALADDZ, F0116.ALCTY1,F0116.ALADDS,F0116.ALCTR, F0116.ALUPMJ,F0116.ALUPMT,F03012.AIAN8, F03012.AICO,F03012.AIMCUR,F03012.AICRCD,F03012.AIACL,
F03012.AIARPY,F03012.AIDB,F03012.AICRCA,F03012.AIASTY,F03012.AISPYE,F03012.AIOPY,F03012.AIPOPN,F03012.AIDAOJ,F03012.AIAN8R,F03012.AICPGP,F03012.AIFRTH,
F03012.AIMAN8,F03012.AIUPMJ,F03012.AIUPMT, F03012.AICUSTS,F03012.AITERRID, F03012.AIDTEE, F0401.A6AN8, F0401.A6MCUP, F0401.A6CRRP,F0401.A6CRCA, F0401.A6AN8R,F0401.A6CPGP, F0401.A6FRTH, F0401.A6UPMJ,F0401.A6UPMT, CAST(F0101.ABAC03 AS CHAR(10)) AS FLEX_ATTRIB_1_CHAR,
CAST(F0101.ABAC23 AS CHAR(10)) AS FLEX_ATTRIB_2_CHAR,
CAST(F0101.ABAC05 AS CHAR(10)) AS FLEX_ATTRIB_3_CHAR,
CAST(F0101.ABAC15 AS CHAR(10)) AS FLEX_ATTRIB_4_CHAR,
CAST(F0101.ABAC09 AS CHAR(10)) AS FLEX_ATTRIB_5_CHAR,
CAST(F0101.ABAC11 AS CHAR(10)) AS FLEX_ATTRIB_6_CHAR,
CAST(F0101.ABAC19 AS CHAR(10)) AS FLEX_ATTRIB_7_CHAR,
CAST(F0101.ABAC21 AS CHAR(10)) AS FLEX_ATTRIB_8_CHAR,
CAST(F0101.ABAC27 AS CHAR(10)) AS FLEX_ATTRIB_9_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_10_CHAR,
CAST(F0101.ABAC17 AS CHAR(10)) AS FLEX_ATTRIB_11_CHAR,
CAST(F0101.ABAC06 AS CHAR(10)) AS FLEX_ATTRIB_12_CHAR,
CAST(F0101.ABAC08 AS CHAR(10)) AS FLEX_ATTRIB_13_CHAR,
CAST(F0101.ABAC14 AS CHAR(10)) AS FLEX_ATTRIB_14_CHAR,
CAST(F0101.ABAC22 AS CHAR(10)) AS FLEX_ATTRIB_15_CHAR,
CAST(F0101.ABAC28 AS CHAR(10)) AS FLEX_ATTRIB_16_CHAR,
CAST(F0101.ABAC18 AS CHAR(10)) AS FLEX_ATTRIB_17_CHAR,
CAST(F0101.ABAC10 AS CHAR(10)) AS FLEX_ATTRIB_18_CHAR,
CAST(F0101.ABAC20 AS CHAR(10)) AS FLEX_ATTRIB_19_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_20_CHAR,
CAST(F0101.ABAC30 AS CHAR(10)) AS LINE_OF_BUSINESS,
CAST(F0101.ABAC14 AS CHAR(10)) AS REGION,
CAST(NULL AS CHAR(10)) AS ACCNT_AHA_NUM,
CAST(F0101.ABAC07 AS CHAR(10)) AS ACCNT_CLASS,
CAST(F0101.ABAC11 AS CHAR(10)) AS ACCNT_HIN_NUM,
CAST(F0101.ABAC02 AS CHAR(10)) AS ACCNT_REGION,
CASt(F0101.ABAC08 AS CHAR(10)) AS ACCNT_VALUE,
CAST(F0101.ABAC16 AS CHAR(10)) AS CUST_CAT_CODE, '0' AS X_CUSTOM
from F0101
LEFT OUTER JOIN F03012 ON F0101.ABAN8 = F03012.AIAN8
INNER JOIN F0401 ON F0101.ABAN8 = F0401.A6AN8
LEFT OUTER JOIN F0116 ON F0101.ABAN8 = F0116.ALAN8 AND F0101.ABEFTB = F0116.ALEFTB
LEFT OUTER JOIN F0111 ON F0101.ABAN8 = F0111.WWAN8 AND F0111.WWIDLN =
LEFT OUTER JOIN (select a.WPAN8 as an8,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) FaxPhoneArea,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Fax,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Phone,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) Phonearea,
max(wpupmj) as WPUPMJ
from F0115 a,
(select WPAN8,WPPHTP ,min(WPRCK7) MinWPRCK7 from F0115
group by WPAN8,WPPHTP
) b
where a.WPAN8=b.WPAN8 and a.wpidln =0
group by a.WPAN8)D on f0101.aban8 = D.an8
LEFT OUTER JOIN (SELECT P.EAAN8 as an8,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Email,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Internet,Max(eaupmj) as EAupmj
FROM F01151 P,
(SELECT EAAN8,EAETP,MIN(EARCK7) MinRck7E from f01151
group by eaan8,eaemal,eaetp)Q
where
P.EAAN8 = Q.EAAN8 and P.EAIDLN =
GROUP BY P.EAAN8)R on f0101.aban8 = R.an8
Oracle Fatal Error
Database driver error...
Function Name : Execute
*****************************************************"ORA-00933: SQL command not properly ended"
this error may be seen due to reasons like the Informatica properties are not set correct.
Are all the informatica properties set correct? how many ETL jobs completed, what analytic apps are in the ETL process? -
Problem with MS SQL 2005 JDBC Conection
Dear all,
I am new user of MS SQL Server 2005 database and Java developer.
When I conect to MS SQL Server 2005 i have a problem with conection.
First I creat new class named DaoTest to test MS SQL conection.
Here I show my code complete.
{color:#0000ff}
import java.sql.Connection;
import java.sql.Statement;
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
public class DaoTest {
private Connection connection;
public DaoTest() {
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
SQLServerDataSource ds = new SQLServerDataSource();
ds.setUser("sa");
ds.setPassword("deanweb");
ds.setServerName("localhost");
ds.setPortNumber(1434);
ds.setDatabaseName("common");
connection= ds.getConnection();
} catch (Exception e) {
e.printStackTrace();
public static void main(String[] args) throws Exception {
DaoTest daoTest1 = new DaoTest();
DaoTest daoTest2 = new DaoTest();
}{color}
{color:#000000}and when I run this class a error appeared:{color}
{color:#ff0000}com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(Unknown Source)
at com.microsoft.sqlserver.jdbc.TDSChannel.read(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.Prelogin(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDataSource.getConnectionInternal(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDataSource.getConnection(Unknown Source)
at DaoTest.<init>(DaoTest.java:21)
at DaoTest.main(DaoTest.java:32)
{color:#000000}But when i change main methol as{color}:
{color}{color:#0000ff}public static void main(String[] args) throws Exception {
DaoTest daoTest1 = new DaoTest();
daoTest1.connection.close();
DaoTest daoTest2 = new DaoTest();
}{color}
->>successful.
{color:#ff0000}{color:#000000}That mean I {color}**can not**{color} creat more than one instance of class DaoTest if i do not close {color:#000000}*daoTest1*'{color}s conection.
I only see this error with MS SQL Server,none in Postgres or HSQL.
Please help me.
Thank for reading and I am waiting for your reply.
sorry my english.
[email protected]
Edited by: DrNhut on Jun 24, 2008 3:39 AM
Edited by: DrNhut on Jun 24, 2008 3:44 AMThank you.
I try your code but it didn't work.
So,here my code with your opinion
String connectionUrl = "jdbc:sqlserver://localhost:1434;"
+ "databaseName=common;selectMethod=cursor;";
// Declare the JDBC objects.
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
try {
// Establish the connection.
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
con = DriverManager.getConnection(connectionUrl,"sa","deanweb");
} catch (Exception e) {
e.printStackTrace();
public static void main(String[] args) throws Exception {
DaoTest daoTest1 = new DaoTest();
// daoTest1.connection.close();
DaoTest daoTest2 = new DaoTest();
}It throws same error with my last posted.
I can't use your code exactlyString connectionUrl = "jdbc:sqlserver://localhost:1434/common;selectMethod=cursor";because it throws a new exception:com.microsoft.sqlserver.jdbc.SQLServerException: The port number 1434/common is not valid.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)May be I change my DBMS instead of MS SQL 2005.
(I nead a database can manage big data.So,I choose MS SQL).
thank you.
DrNhut.
Edited by: DrNhut on Jun 25, 2008 6:39 PM
Maybe you are looking for
-
G4 +23" CD Not keeping resolution after reboot
Heya folks I have a powerbook g4 and a cinema display 23". I have been using the 2 of them together without problems, but I recently installed some of the apple service updates and after doing so I am having problems with with the external monitor. I
-
Printer Works then Does Not?
Hello, I was curious if anybody else has had a problem where a TimeCapsule shared printer works initially when the TimeCapsule is turned on or rebooted but after some time becomes unrecognized. My printer is a Samsung ML-2510 monochrome laser printer
-
Lock Code request after hard reset
Hi, So I did a hard reset and I knew that I'll lose the Ovi Store. What it's completely new for me is that now each time I'm starting the phone I am requested to input the lock code. I have given 12345 but a message saying "Code fail" is shown and af
-
Hi everyone, I'm trying to use a barcode font (IDAutomationHC39M.ttf) inside a XSL-FO template (Standard Purchase Order Template). I already loaded the font and created the mapping using XML Publisher Administration Configuration, but I still cannot
-
GE60 0NC-622UK laptop is stuck on Blue Screen can't login! please help..
Had this laptop for just one month, before it's all good. Windows 8 64bit. In last two days, the mouse and touchpad became dysfunctional occasionally, able to move the pointer but just could't click on anything regardless of left or right, e.g. choos