Connection Reset when compiling PL/SQL Package

Recently a strange issue appeared on my office PC. When I try To compile a PL/SQL package on specific Oracle instance I get an error message:
Error: Io exception: Connection reset by peer: socket write error
And the connection is reset. I even cannot reconnect to database schema. To open connection again I have to restart SQL Developer. In spite of this issue I can execute SELECT queries in SQL worksheet and view data in tables. Error message appears only when compiling packages in any schema on database instance in our local network and only on my PC. Other office PCs works fine without any errors. I am able to compile packages on remote database from my PC.
Same error message shows up in different SQL Developer versions and also in JDeveloper. SQL Developer restart, Windows restart, database instance restart doesn't help.
Used software:
SQL Developer versions: 1.2.1 and 1.1
JDeveloper version: 10.1.3.2
Oracle Database on local network: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
Remote Oracle Database: Oracle Database 10g Release 10.2.0.3.0 - Production
OS: Windows XP Pro SP2
Thanks,
Raymond

I am trying to convert the values in a selected
column into 1 and 0 so that I can display all 1s in
one column, all 0s in another. I am doing this in a
PL/SQL package. However ORACLE compiler does not
like the CASE construct.
Does anyone know how to group values in a column into
several new columns. If CASE WHEN construct is not
doable in PL/SQL, what alternatives are there?
Thanks.
CURSOR v_Cursor IS
SELECT A.D_CODE, A.M_CODE, TEST_START ,
, C.C_NAME,C.P_ID,
SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 ANDB.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0
END) QUALIFIEDUse the Decode function. This has been around in oracle SQL for ages and works like a case construct.
You would do something like
select ...
sum( decode (MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND
B.B_CODE IN ('11.1','222.2','272.4') 1,0 )

Similar Messages

  • Code runs correctly when compiled by SQL developer but not SQL Plus

    I have a rather large package body I need to deploy and compile ... It's big and complex (I inherited the project). Our it dept is huge and scripts are deployed by the dba team and they seem to only use sql plus. My code deploys and runs fine when compiled in sql developer. Once I compile it from SQL plus it stops working. It runs and using debug statements I can see the values are correct but it no longer inserts the data into the proper tables. I get ZERO errors or warnings when this is compiled in SQL Plus and no errors are generated from the code at run time. I've diffed the extracts of the code from the DB after each deployment and the only difference is the blank lines which SQL Plus strips out when you load the file. Has anyone run into anything remotely similar and if so how did you solve it? I've tried modifying the code to no avail, adding in comments to preserve the white space makes no difference. The thing that really kills me is that there is no error at all.

    Ok this is the problem area.... vReplyMessage is a clob. I've replaced it in this section of processing with a varchar2(32000). And now it works. I still would like to know why though. Nothing is changed when I load it though sqlplus or sql developer but this line " update swn_recip_response_t set SWN_RECIP_RESPONSE = vTextReply where notification_id = v_notification_id; " would never execute with the clob. Logging showed that the clob had the correct value though. I am puzzled.
    begin
    call_SWNPost('http://www.sendwordnow.com/usps/getNotificationResults',vMessageText, vReplyMessage, v_status_code, v_status_phrase, '');
    exception
    when others then
    raise eJavaException;
    end;
    vTextReply := dbms_lob.substr( vReplyMessage, 32000, 1 );
    if (vDebug) then
    update PEMS_PROD_2.SWN_POST_LOG set response = 'notif_id == '|| v_notification_id || 'status code == '|| v_status_code|| ' '||vTextReply where log_pk = vLogPK;
    commit;
    end if;
    IF v_status_code = 200 then
    v_has_error := 'N';
    ELSE
    v_has_error := 'Y';
    END IF;
    -- we handle all exceptions below in case something goes wrong here.
    -- this area can die silently.
    vTextReply := replace(vTextReply,'<getNotificationResultsResponse xmlns="http://www.sendwordnow.com/usps">', '<getNotificationResultsResponse xmlns:xyz="http://www.sendwordnow.com/usps">');
    begin
    insert into swn_recip_response_t(notification_id) values (v_notification_id);
    exception
    when others then
    if (vDebug) then
    err_num := SQLCODE;
    err_msg := SUBSTR(SQLERRM, 1, 100);
    insert into PEMS_PROD_2.SWN_POST_LOG (LOG_PK, create_date, REQUEST, notification_id) values(pems_prod_2.swn_post_log_seq.nextval,sysdate,
    'err_num - '||to_char(err_num)|| ' error_msg - '|| err_msg, v_notification_id);
    commit;
    else
    null;
    end if;
    end;
    commit;
    begin
    update swn_recip_response_t
    set SWN_RECIP_RESPONSE = vTextReply
    where notification_id = v_notification_id;
    exception
    when others then
    if (vDebug) then
    err_num := SQLCODE;
    err_msg := SUBSTR(SQLERRM, 1, 100);
    insert into PEMS_PROD_2.SWN_POST_LOG (log_pk, create_date, REQUEST, notification_id) values(pems_prod_2.swn_post_log_seq.nextval,sysdate,
    'err_num - '||to_char(err_num)|| ' error_msg - '|| err_msg, v_notification_id);
    commit;
    else
    null;
    end if;
    end;
    commit;
    -- parse through the XML document and update the notification and recipient records
    -- parse the clob into an xml dom object
    begin
    vReplyMessage := vTextReply;
    ...

  • Using CASE WHEN in PL/SQL package

    I am trying to convert the values in a selected column into 1 and 0 so that I can display all 1s in one column, all 0s in another. I am doing this in a PL/SQL package. However ORACLE compiler does not like the CASE construct.
    Does anyone know how to group values in a column into several new columns. If CASE WHEN construct is not doable in PL/SQL, what alternatives are there? Thanks.
    /******* My package starts here *******/
    CREATE OR REPLACE PACKAGE TEST_NEED AS
    PROCEDURE procTEST_NEED(STARTING_DATE IN VARCHAR2);
    END CVRR_MON_NEED;
    CREATE OR REPLACE PACKAGE BODY TEST_NEED
    AS
    PROCEDURE procTEST_NEED(STARTING_DATE IN VARCHAR2)
    IS
    TEST_START DATE := TO_DATE(STARTING_DATE,'MM/DD/YYYY');
    CURSOR v_Cursor IS
    SELECT A.D_CODE, A.M_CODE, TEST_START , C.C_NAME,C.P_ID,
    SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 > 40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND B.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0 END) QUALIFIED
    FROM A, B, C, D
    WHERE A.ID = B.B_ID
    AND RTRIM(A.P_CODE) = C.P_CODE
    AND A.P_ID = D.P_ID
    AND A.P_ID < 99999999999999999999
    AND A.E_DATETIME < SYSDATE
    GROUP BY A.D_CODE, A.M_CODE, TEST_START , C.C_NAME,C.P_ID;
    v_RecordHolder v_Cursor%ROWTYPE;
    BEGIN
    OPEN v_Cursor;
    FETCH v_CursorINTO v_RecordHolder ;
    WHILE v_Cursor%FOUND LOOP
    look for records in another table with matching keys of the cursor
    if found then update by incrementing the existing values in the matching records with values of the current currsor row
    else insert the current cursor row
    FETCH v_Cursor INTO v_RecordHolder ;
    END LOOP;
    END procTEST_NEED;
    END TEST_NEED;

    I am trying to convert the values in a selected
    column into 1 and 0 so that I can display all 1s in
    one column, all 0s in another. I am doing this in a
    PL/SQL package. However ORACLE compiler does not
    like the CASE construct.
    Does anyone know how to group values in a column into
    several new columns. If CASE WHEN construct is not
    doable in PL/SQL, what alternatives are there?
    Thanks.
    CURSOR v_Cursor IS
    SELECT A.D_CODE, A.M_CODE, TEST_START ,
    , C.C_NAME,C.P_ID,
    SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
    40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 ANDB.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0
    END) QUALIFIEDUse the Decode function. This has been around in oracle SQL for ages and works like a case construct.
    You would do something like
    select ...
    sum( decode (MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
    40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND
    B.B_CODE IN ('11.1','222.2','272.4') 1,0 )

  • Connection reset when inserting file to BLOB column

    Friends,
    When inserting a file to a BLOB clomun and the file is more than 1KB, I receive the following message: java.sql.SQLException: Io exception: Connection reset
    The code is this:
    int fileLength = (int)file.length();
    System.out.println("File length: "+fileLength);
    int cod = (int)(Math.random() * 1000);
    String sql = "INSERT INTO BLOB_TABLE VALUES(?,?)";
    try {
    FileInputStream fis = new FileInputStream(file);
    PreparedStatement pstmt = connection.prepareStatement(sql);
    pstmt.setInt(1, cod);
    pstmt.setBinaryStream(2, fis, fileLength);
    pstmt.executeUpdate();
    System.out.println("File insert sucess!");
    connection.close();
    Does anybody know what this can be? My database is oracle.
    Thanks!

    When you create objects on the database they are stored in the data dictionary by default in UPPER case.
    So in this line:
    src_loc bfile := bfilename('example_lob_dir', 'example.gif'); -- source location
    you need to reference the name of the directory object in upper case. e.g.
    src_loc bfile := bfilename('EXAMPLE_LOB_DIR', 'example.gif'); -- source location
    ;)

  • JDBC Connection Reset when using many processes on 64 bit system

    Hi,
    we've a annoying JDBC connection problem since we migrated our Java server to a 64 bit operating system. Here our environment.
    Database Machine:
    Oracle 10g
    Linux 32 Bit (but same problem on 64 Bit)
    Application Servers Machine:
    JDBC driver 11.1.0.6
    SUN Java 1.6.0_06 64bit
    Linux 64 bit (SLES 10 SP2)
    We have 6 different Java server processes (but with the same code) which all create some connections to the same database (running on a different Hardware). All 6 Java server processes starting at the same time (via scripts).
    Everything was fine, until we migrated the application server machine from 32 bit Linux to 64 bit Linux. From this day on, the half (or one more or less) of our application server processes can't longer connect to the database. The application server processes which have the problem product the following stack trace:
    java.sql.SQLRecoverableException: I/O Exception: Connection reset
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:281)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:118)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:224)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:296)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:611)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:455)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:494)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:199)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at com.aaaa.utils.db.DbConnectionPool.<init>(DbConnectionPool.java:130)
    It looks like a network problem with the system but all other network stuff works without problems, between the two machines.
    - We use the thin JDBC driver (no OCI)
    - No firewalls are active on both systems
    - Both systems are in the same subnet connected to the same switch
    - The DNS configuration on both systems are ok (forward and reverse)
    - We've found the same problem on different application-server/database-server pairs with 64 bit application server hardware - but not all of our 64 bit server systems have this problem.
    - When running application server process and database on the same system (connecting via localhost) the problem does not longer appear.
    - The same database machine connected from a 32 bit application server (with 6 different java processes starting at the same time) works without a problem.
    We've tried a lot of things to isolate the problem - but with no success.
    - Same problem with SUN Java 1.6.0_06 32 bit (on 64 bit Linux)
    - Same problem with SUN Java 1.6.0_15 (32 and 64 bit)
    - Played with some JDBC connection properties (oracle.jdbc.TcpNoDelay, oracle.jdbc.ReadTimeout, oracle.net.CONNECT_TIMEOUT, oracle.net.disableOob, oracle.jdbc.RetainV9LongBindBehavior, oracle.jdbc.StreamChunkSize) without a positive result.
    - We've updated Linux network driver
    - We've changed to an completeky other NIC
    - We've tried an other Linux 64 distribution
    - We've increased the PROCESSES parameter in the init.ora
    - We've tried the JDBC driver 11.1.0.6
    - We've tried the _g version of the JDBC driver, but the debugging output simply tell us "Connection Reset" without a hint why.
    - We've tried a more complex JDBC connect string (
    "jdbc:oracle:thin:@(DESCRIPTION=" +
    "(ADDRESS_LIST=" +
    "(ADDRESS=(PROTOCOL=TCP)" +
    "(HOST=host)" + =
    "(PORT=port)" +
    ")" +
    ")" +
    "(CONNECT_DATA=" +
    "(SERVICE_NAME=sid)" +
    "(SERVER=DEDICATED)" +
    ")" +
    Nothing of this things helped us to isolate the problem.
    When we start our application server processes with a long pause (>1 min) between every process start. The problem does not occure. When we start only one application server with the same number of connections as the 6 different application server processes, everything works fine.
    We have absolute no idea why
    - this only occures on 64 bit Linux
    - independent if it's a 32 bit or 64 bit JVM
    - does not occure on all 64 bit application server machines / database machine pairs
    - never occure on the same 64 bit app server hardware when using a 32 bit Linux
    - using the Oracle JDBC 10g driver (10.xxx) there is no problem (but because of other issues, we need to use the JDBC 11g driver)
    Does anybody has an idea what our problem is?
    Thanks in advance,
    greetings

    I was recently struggling with this exact same problem. I opened a ticket with Oracle and this is what they told me.
    java.security.SecureRandom is a standard API provided by sun. Among various methods offered by this class void
    nextBytes(byte[])
    is one. This method is used for generating random bytes. Oracle 11g JDBC drivers use this API to generate random number during
    login. Users using Linux have been encountering SQLException("Io exception: Connection
    reset").
    The problem is two fold
    1. The JVM tries to list all the files in the /tmp (or alternate tmp directory set by -Djava.io.tmpdir) when
    SecureRandom.nextBytes(byte[]) is invoked. If the number of files is large the
    method takes a long time
    to respond and hence cause the server to timeout
    2. The method void nextBytes(byte[]) uses /dev/random on Linux and on some machines which lack the random
    number generating hardware the operation slows down to the extent of bringing the whole login process to
    a halt. Ultimately the the user encounters SQLException("Io exception:
    Connection reset")
    Users upgrading to 11g can encounter this issue if the underlying OS is Linux which is running on a faulty hardware.
    Cause
    The cause of this has not yet been determined exactly. It could either be a problem in
    your hardware or the fact
    that for some reason the software cannot read from dev/random
    Solution
    Change the setup for your application, so you add the next parameter to the java command:
    -Djava.security.egd=file:/dev/../dev/urandom
    We made this change in our java.security file and it has gotten rid of the error.

  • Error when compiling pl/sql in JDEV 11g

    db version: 9.2.0.6.0
    JDEV version : 11.1.1.0.2
    Whenever I click compile on a pl/sql package body from Jdev I get the following error:
    An error was encountered performing the requested operation:
    ORA-904: "ATTRIBUTE": invalid identifier
    00904.00000 - "%s: invalid identifier"
    *cause
    *action
    vendor code 904
    even though the package itself compiles successfully.. any clues why this keeps happening, are the 2 versions not compatible?
    Will

    does any one else get this when doing pl/sql dev on JDEV 11g?

  • Connection reset when uploading a report to ras server.

    Hi,
    We're running the jboss app in the linux box and use the java sdk to extract the crystal report with the ras on the remote window box. We got the below exception when extracting one of the crystal report. Any idea what's going on?
    The trace log is also attached below.
    Thanks,
    Min
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: . - Connection reset-- Error code:-2147217387 Error code name:connectServer
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
    crystalras_xxx_ras.log
    TraceLog 2009  5  6 16:24:40.256 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=8
    TraceLog 2009  5  6 16:24:40.256 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2463): doOneRequest saRequestId_verifyLogon in
    TraceLog 2009  5  6 16:24:40.865 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2465): doOneRequest saRequestId_verifyLogon out [NoError]
    TraceLog 2009  5  6 16:24:40.865 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=8
    TraceLog 2009  5  6 16:24:40.912 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=9
    TraceLog 2009  5  6 16:24:40.912 5892 3152 (.\dts\cdtsagent.cpp:717): doOneRequest caReservedRequestId_CreateServerAgent in
    TraceLog 2009  5  6 16:24:40.928 5892 3152 (.\dts\cdtsagent.cpp:744): doOneRequest caReservedRequestId_CreateServerAgent out [NoError]
    TraceLog 2009  5  6 16:24:43.319 5892 3152 (.\dts\cdtsagent.cpp:749): doOneRequest caReservedRequestId_CloseServerAgent in
    TraceLog 2009  5  6 16:24:43.334 5892 3152 (.\dts\cdtsagent.cpp:757): doOneRequest caReservedRequestId_CloseServerAgent out [NoError]
    TraceLog 2009  5  6 16:24:43.334 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=9
    crystalras_xxx.log
    Timestamp     ProcessID     ThreadID     Message
    [Wed May 06 23:24:40 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.256 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=8
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: XmlSerializer: before creating object
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: XmlSerializer: after creating object
    [Wed May 06 23:24:40 2009]     5892     5216     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.256 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2463): doOneRequest saRequestId_verifyLogon in
    [Wed May 06 23:24:40 2009]     5892     5216     (.\comexports.cpp:25): trace message: DllGetClassObject called.
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:43): trace message: Getting instance of class factory.
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:56): trace message: Got instance of class factory.
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:115): trace message: Class factory QueryInterface called.
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:99): trace message: Class factory addref'ed.
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:131): trace message: Class factory QI succeeded..
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:154): trace message: Attempting to create instance of COM component...
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:178): trace message: Successfully created COM object.
    [Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:107): trace message: Class factory released.
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1896): trace message: GetApslist: apsList size: 1
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1897): trace message: GetApsListm_Members.GetCount()==1
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1898): trace message: GetApsList m_InactiveMembers.GetSize()==0
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infostore.cpp:265): trace message: CInfoStore::Query: SELECT SI_SERVER_NAME,SI_CLUSTER_NAME,SI_SERVER_IS_ALIVE,SI_SERVER_IOR,SI_SYSTEM_INFO FROM CI_SYSTEMOBJS WHERE (SI_PARENTID = 16 AND SI_SERVER_KIND = 'aps') OR SI_ID = 4
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoStore::QueryEx() returned 2 objects with more to come? 0
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoSessionManager::GetApsListFromNS: APS MIN.SYMYVR.LOCAL is alive.  Adding to active members
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoSessionManager::ClusterInfo::UpdateRegistry: Updating min.symyvr.local; to registry
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1896): trace message: GetApslist: apsList size: 1
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1897): trace message: GetApsListm_Members.GetCount()==1
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1898): trace message: GetApsList m_InactiveMembers.GetSize()==0
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1896): trace message: GetApslist: apsList size: 1
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1897): trace message: GetApsListm_Members.GetCount()==1
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1898): trace message: GetApsList m_InactiveMembers.GetSize()==0
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: Executing query SELECT SI_PRODUCT_VERSION FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 26 AND SI_NAME = 'secEnterprise' to get auth properties
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infostore.cpp:265): trace message: CInfoStore::Query: SELECT SI_PRODUCT_VERSION FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 26 AND SI_NAME = 'secEnterprise'
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoStore::QueryEx() returned 1 objects with more to come? 0
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: ClientPing_impl::add_session_handle: session handle (23793J9ujwvkFe3QPWTsv) added
    [Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:690): trace message: User: guest logged on
    [Wed May 06 23:24:40 2009]     5892     5216     trace message: ClientPing_impl::remove_session_handle: remove session handle (23793J9ujwvkFe3QPWTsv). succeded=true
    [Wed May 06 23:24:40 2009]     5892     5216     (.\proxy_impl.cpp:436): trace message: LOGOFF implicit session logoff: userId[11], m_uri[osca:iiop://MIN.SYMYVR.LOCAL/SI_SESSIONID=23793J9ujwvkFe3QPWTsv], sessionId[23793], m_sSessionHandle[23793J9ujwvkFe3QPWTsv]
    [Wed May 06 23:24:40 2009]     5892     5216     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.865 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2465): doOneRequest saRequestId_verifyLogon out [NoError]
    [Wed May 06 23:24:40 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.865 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=8
    [Wed May 06 23:24:40 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.912 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=9
    [Wed May 06 23:24:40 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.912 5892 3152 (.\dts\cdtsagent.cpp:717): doOneRequest caReservedRequestId_CreateServerAgent in
    [Wed May 06 23:24:40 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:40.928 5892 3152 (.\dts\cdtsagent.cpp:744): doOneRequest caReservedRequestId_CreateServerAgent out [NoError]
    [Wed May 06 23:24:43 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:43.319 5892 3152 (.\dts\cdtsagent.cpp:749): doOneRequest caReservedRequestId_CloseServerAgent in
    [Wed May 06 23:24:43 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:43.334 5892 3152 (.\dts\cdtsagent.cpp:757): doOneRequest caReservedRequestId_CloseServerAgent out [NoError]
    [Wed May 06 23:24:43 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
    TraceLog 2009  5  6 16:24:43.334 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=9
    Edited by: limin9 on May 7, 2009 1:29 AM
    Edited by: limin9 on May 7, 2009 1:30 AM

    I tried to put the debug information in java code by applying clientSDKOptions.xml. And I found the report file is cut off when being passed to ras. I'm wondering if there is any file size limitation to use ras api?

  • Connection reset when accessing HTTPS through proxy

    Since upgrading to firefox 27 when trying to access https://www.birtles.org.uk I receive a connection reset or connection interrupted error. I am connecting through a proxy. Firefox 26 works correctly.
    I have tried on 3 different machines 2 windows and one Mac with the same results.

    Same issue and resolution for me when I try to access https://mail.ntlworld.com. I'm also connecting through a proxy, have tried both of them available to me. It works fine using other browsers, just firefox causing issues.
    Also on an unrelated note, https://support.mozilla.org/en-US/users/register keeps redirecting to the login page. Tried on multiple browsers, in the end had to use mobile to create an account.

  • Compiling pl/sql packages via sql

    Hi All,
    Is it possible to compile the pl/sql packages via sql scripts or shell scripts
    The idea is to make the compilation process independent of tools like PL/SQL developer and people.
    Thanks in adv.
    Bh.

    OK. What sort of source control system are you using?
    In general, you would want to check in all your scripts to a version control system and write scripts that automatically check the appropriate version of a script out of source control and apply it to the appropriate environment in the appropriate order at the appropriate time. What is appropriate, obviously, is going to be heavily influenced by your particular environment, needs, build process, build schedule, etc.
    One possibility is to check in a MASTER_BUILD.sql script that is a SQL*Plus script that invokes whatever other scripts are necessary for a particular change, along with all the supporting scripts, into a folder that is at whatever granularity you track changes. Your build process would then just check out everything in this folder and run MASTER_BUILD.
    Justin

  • Connection reset when closing the client program.

    when closing the client program I get the error message Connection Reset
    at ServerThread.run(SeverThread.java:244)
    which is the following file
    i've marked the 244: on this file on the left of the file.
    after this I have the client program which is called Client.java
    the error happens when I close the client program and the error is on the serverthread side of the application. Please anyone help out with this one.. Thanks.
    //SererThread.java
    import java.net.*;
    import java.io.*;
    import java.util.Date;
    import java.util.Calendar;
    import javax.swing.*;
    public class ServerThread extends Thread {
    private Socket socket = null;
    String outputStrings = "";
    public ServerThread(Socket socket) {
         super("ServerThread");
         this.socket = socket;
         Calendar c = Calendar.getInstance();
         int hr = c.get(Calendar.HOUR_OF_DAY);
         int hour=hr-1;
         int min = c.get(Calendar.MINUTE);
         int sec = c.get(Calendar.SECOND);
         String timeOfConnect [] = new String[100];
         int conCtr = 0;
    int curState = 0;
         String entries [][] = new String[5][100];
    public String getInput(String theInput) {
    String sentToClient = null;
         Calendar c = Calendar.getInstance();
         int hr = c.get(Calendar.HOUR_OF_DAY);
         int hour=hr-1;
         int min = c.get(Calendar.MINUTE);
         int sec = c.get(Calendar.SECOND);
         int day = c.get(Calendar.DAY_OF_WEEK);
         int month = c.get(Calendar.MONTH);
         int year = c.get(Calendar.YEAR);
         int pm = c.get(Calendar.PM);
         String strHr = Integer.toString(hour);
         String strMin = Integer.toString(min);
         String theInputSeg = "";     
         if(theInput!= null)     
         for(int a=0;a<theInput.length();a++)
              char inputCharArray [] = theInput.toCharArray();
              if(inputCharArray[a]==';')
                   theInputSeg = theInput.substring(0,a);
    if (curState == 0) {
    if(c.PM==1&& hour == 8)
         sentToClient = "yes";
    curState = 1;
    } else if (curState == 1) {
         for(int a=0;a<3;a++)
                   //System.out.println("theInput:" + theInput);
                   //System.out.println("a:" + entries[0][a]);
                   //System.out.println("a:" + entries[1][a]);               
                   //if()
                   if(theInputSeg.equalsIgnoreCase("CUSCarissa_Calton25242526")||theInputSeg.equalsIgnoreCase("CUSSan_Htat27242526")
                        ||theInputSeg.equalsIgnoreCase("CUSSadam_Husien20909990"))
                   //if(theInput.equalsIgnoreCase(entries[0][a])||theInput.equalsIgnoreCase(entries[1][a]))
                        System.out.println("buy...");
                        curState = 0;
                        sentToClient = "Bye.";
                   else
                        System.out.println("buy...!");
                        curState = 0;
                        sentToClient = "Hello.";
    return sentToClient;
    public void run() {
         int next = 0;     
         BufferedWriter bw = null;
         byte [] b = null;
         BufferedWriter bw1 = null;
         try{
    //JOptionPane.showMessageDialog(null,"Sizz");
    String fileNameStr = "C:\\San Server Data\\cInputCustData.txt";
    File f = new File(fileNameStr);
    long size = f.length();
    b = new byte[(int)size];
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    int count = 0, index = 0;
    int byteRed = 0;
    int sizeInt = (int)size;
    while (bis.available() > size-1)//16848 )
    bis.read(b,index,(int)size);
    //int bytesRead = bis.read(b,index,(int)size2);
    //size2 -= count;
    //index += count;
    //System.out.println( "hello:" + b[index]);
    //index++;
    //bis should be closed in a finally block.
    bis.close() ;
    catch(IOException io)
    System.out.println("Oh oh io error");
         //System.out.println("cInputCustData: \n" + new String(b));
         String bStr = new String(b);
         char charbStr []= bStr.toCharArray();
         String header []= new String[5];
         int ctr = 0;
         int e = 0;
    boolean first = true;
         for(int q=0;q<5;q++)
              for(int u=0;u<100;u++)
                   entries[q]= new String("");                    
         //System.out.println("b: " + bStr);
         for(int s=0; s<charbStr.length;s++)
              if(s<charbStr.length-1)
              if(charbStr[s]==':'&&charbStr[s+1]==':')
                   //System.out.println(" s0: " + s);                    
                   for(int ss=s+2;ss<s+12;ss++)
                        //System.out.println("ss: "+ ss + " s: " + s);                         
                        if(charbStr[ss]==':')
                             //System.out.println("in");     
                             header[ctr] = bStr.substring(s,ss);               
                             //System.out.println("1ss: " + ss + " s: " + s);          
                             for(int c=ss+1;c<charbStr.length;c++)               
                                  if(charbStr[c]==':')
                                       //System.out.println("ctr: " + ctr + " " +"entries[0]" + entries[0][0]+ "\n"+ entries[0][1] + "\n" + entries[1][0] + "\n" + entries[1][1]);
                                       if(ss<charbStr.length)entries[ctr][e++] = bStr.substring(ss+1,c);
                                       //System.out.println("c:" + c);
                                       ss= c;
                        ctr++;
                        e=0;
              //System.out.println("header: " + header);                         
                                  //System.out.println("entires[0]0: " + entries[0][0]);
                                  //System.out.println("entires[0]1: " + entries[0][1]);
                                  //System.out.println("entires[1]0: " + entries[1][0]);
                                  //System.out.println("entires[1]1: " + entries[1][1]);
                                  //System.out.println("entires[2]0: " + entries[2][0]);
                                  //System.out.println("entires[2]1: " + entries[2][1]);
              String timeConnect[][] = new String[5][100];
              char myChars[] = null;
              for(int d=0;d<5;d++)
                   for(int f = 0;f<100-1;f++)
                        for(int cs=0;cs<entries[d][f].length();cs++)
                             if(!(entries[d][f].equals("")))
                                  myChars = entries[d][f].toCharArray();
                             for(int a=0;a<entries[d][f].length();a++)
                                  if(myChars[a]==';')
                                       for(int k=a;k<entries[d][f].length();k++)
                                            timeConnect[d][f]= entries[d][f].substring(a,k);
                                       //     System.out.println("time: " + timeConnect[d][f]);
         //for(int o=0;o<5;o++)
              //System.out.println("Header["+o+"]" + header[o]);
         try {
         PrintWriter output = new PrintWriter(socket.getOutputStream(), true);
         BufferedReader input = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inLine, outLine;
         outLine = getInput(null);
         output.println(outLine);
         while ((inLine = input.readLine()) != null) {
    244: outLine = getInput(inLine);
              output.println(outLine);
              System.out.println(inLine);
              outputStrings += inLine;
              //if(inLine.equals("Hello."))break;
              timeOfConnect[conCtr++]= " " Integer.toString(hour)":"+Integer.toString(min)+":"+Integer.toString(sec);
              if(c.PM==1){System.out.println("HL");timeOfConnect[conCtr-1]+="PM";}
              System.out.println(timeOfConnect[conCtr-1]);
              outputStrings += "\n"+ timeOfConnect[conCtr-1];
              //System.out.println("output");     
              try {
                   //FileWriter fw1 = new FileWriter("C:\\San Server Data\\Connectlog.txt");
                   bw1 = new BufferedWriter(new FileWriter("C:\\San Server Data\\Connectlog.txt",true));
                   //PrintWriter pw2 = new PrintWriter(bw1);
                        System.out.println(outputStrings);
                        //pw2.println(outputStrings);
                        if(next == 0)          
                             bw1.write(outputStrings);
                        if(next == 1)
                             bw1.write(outputStrings+ " D");
                        bw1.newLine();
                        bw1.flush();
                   //pw2.close();
                        catch (IOException io) {
                   System.out.println("Oh oh, Got and IOException error!"+io);
                        finally{
                             if(bw1 != null) try{
                                  bw1.close();
                             catch(IOException io)     
         output.close();
         input.close();
         socket.close();
    if(next == 0)next = 1;
         else if(next == 1)next = 0;
         //WONCUS1 won = new WONCUS1();
         //String m[] = new String[1];      
         //won.main(m);
         //won.start();     
         } catch (IOException err) {
         err.printStackTrace();
    //Client.java
    public class Client {          
    public static Socket Socket = null;
    public static BufferedReader i = null;
         public static PrintWriter o = null;
         public static String packetString = "CUSCarissa_Calton25242526"; //product id
         public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    public static String fromServer;
    public static String fromUser;
    public static void main(String[] args) throws IOException {
         int ars=0;
         if (args.length > 0)
              ars = Integer.parseInt(args[0]);
    try {
         Socket = new Socket("localhost", 4444);
    o = new PrintWriter(Socket.getOutputStream(), true);
    i= new BufferedReader(new InputStreamReader(Socket.getInputStream()));
    } catch (UnknownHostException err) {
    System.err.println("Can not find Server!");
    System.exit(1);
    } catch (IOException e) {
    System.err.println("Couldn't get initialisation files to be represented in true statement!");
    System.exit(1);
    while ((fromServer = i.readLine()) != null) {
         //int hour = Integer.parseInt(fromServer);
         //System.out.println("Server: " + fromServer);
         System.out.println("Server: " + fromServer);     
         if (fromServer.equals("Bye."))
    break;
         if (fromServer.equals("Hello."))
    break;
    fromUser = packetString;
         if (fromUser != null) {
    System.out.println("Client: " + fromUser);
    //o.println(fromUser);
              String getComp = InetAddress.getLocalHost().getHostName();
              String ip = InetAddress.getLocalHost().getHostAddress();
              o.println(fromUser+";"+getComp + " " + ip);
              //o.println(getComp + " " + ip);

    "onclose event of application", at least do something such as call wait() on ReadersWhy? Who is going to notify() it?
    and close the Sockets and then Readers/WritersI won't even ask why about that because it is 100% dead wrong. Close the outermost Writer or OutputStream. That flushes the output, closes the socket, and closes any input streams or readers. Taking your advice the flush() cannot occur. But the evidence is that he is closing the socket: in fact the operating system does that anyway. Possibly he needs to take the advice about closing the Writer/OutputStream, to cause the flush(), which might stop the server from writing. But that depends on the application. If it's legal in the application protocol for the client to exit while the server is still writing he will just have to put up with the 'connection resets', or at least interpret them properly rather than just logging them as an error.
    If your using a window(GUI) you can use the main frame with a Window closing event.And that's completely irrelevant because the error happens on the server.

  • When to delete SQL Packages

    It's been a long time and I've forgotten: If a new cumulative fix pack is installed at the OS-level, do you need to delete SQL packages?
    Thanks in advance,
    Robert

    Hi Bob,
    YES !!!!!!
    (as soon as you install 1 PTF only, you should delete all SQL packs!)
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • Connection reset when obtaining Realms from LDAP provider

    Properties props = new Properties();
    props.put( "provider", JAZNProvider.Type.LDAP);
    props.put( "location", "ldap://<myoidurl>:389");
    props.put( "ldap.user", "cn=orcladmin");
    props.put( "ldap.password", "!<mypwd>");
    JAZNConfig cfg = new JAZNConfig(props);
    JAZNProvider prov = cfg.getJAZNProvider();
    Set realms = prov.getRealmManager().getRealms(); <---- causes following error
    Exception in thread "main" oracle.security.jazn.JAZNNamingException: The system is unable to communicate with the directory or naming service.
         at oracle.security.jazn.spi.ldap.LDAPContext.getSSLDirContext(LDAPContext.java:622)
         at oracle.security.jazn.spi.ldap.LDAPContext.getDirContext(LDAPContext.java:487)
         at oracle.security.jazn.spi.ldap.LDAPContext.getDefaultDirContext(LDAPContext.java:246)
         at oracle.security.jazn.spi.ldap.LDAPContext.getOrclRootCtxDN(LDAPContext.java:187)
         at oracle.security.jazn.spi.ldap.LDAPContext.getSiteJAZNCtxDN(LDAPContext.java:222)
         at oracle.security.jazn.spi.ldap.LDAPRealmManager.searchRealms(LDAPRealmManager.java:1087)
         at oracle.security.jazn.spi.ldap.LDAPRealmManager.getRealms(LDAPRealmManager.java:200)
         at client.JaznTest.<init>(JaznTest.java:41)
         at client.JaznTest.main(JaznTest.java:54)
    Caused by: javax.naming.CommunicationException: oidtest.ncdenr.org:389 [Root exception is java.net.SocketException: Connection reset]
         at com.sun.jndi.ldap.Connection.<init>(Connection.java:194)
         at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
         at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1578)
         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2596)
         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
         at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
         at oracle.security.jazn.spi.ldap.LDAPContext.getSSLDirContext(LDAPContext.java:613)
         ... 8 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:284)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:319)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
         at oracle.security.jazn.spi.ldap.JAZNSSLSocketFactoryImpl.init(JAZNSSLSocketFactoryImpl.java:228)
         at oracle.security.jazn.spi.ldap.JAZNSSLSocketFactoryImpl.createSocket(JAZNSSLSocketFactoryImpl.java:170)
         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:585)
         at com.sun.jndi.ldap.Connection.createSocket(Connection.java:311)
         at com.sun.jndi.ldap.Connection.<init>(Connection.java:181)
         ... 21 more

    The reset seems to happen after 5 minutes. Is there any network device in between 153.88.247.15 and the DPS? It could also be a idle timeout on the box or app on 153.88.247.15

  • Weired behaviour while we compile PL/SQL package

    Hi All,
    We have one package where we have declared few constants those we are using all over our application code. By mistake, one of the developer declared one constant twice, we didn't notice it until today while chasing down a bug...
    I was under impression that we can not declare same variable or constants twice in the same package/procedure/block. But surprisingly, if we are not using the same variable in that block, (We defined it global packaged constant) we are not getting compilation error or warning. Does anyone know anything about this.
    Oracle Configuration:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - ProductionThanks in advance.
    Thanks,
    Dharmesh Patel

    I would again point out that I do not see the results as you describe. see the output from 9.2.0.3 below. Both times it gives me the same result.
    As shown above by James, it throws out the correct error under 10G. But as far as I see, it seems to be consistent under Oracle9i release 9.2.0.3 and 9.2.0.5.
    I think it might be the time for your database to be upgraded to at least 9.2.0.3 release.
    SQL> CREATE OR REPLACE PACKAGE P00_Constants AS
      2      SubType201 CONSTANT VARCHAR2(3) := '201';
      3      SubType202 CONSTANT VARCHAR2(3) := '202';
      4      SubType202A CONSTANT VARCHAR2(4) := '202A';
      5      SubType202P CONSTANT VARCHAR2(4) := '202P';
      6      SubType202I CONSTANT VARCHAR2(4) := '202I';
      7      SubType203 CONSTANT VARCHAR2(3) := '203';
      8      SubType201 CONSTANT VARCHAR2(3) := '204';
      9
    10      Yesflag CONSTANT VARCHAR2(3) := 'YES';
    11      ------------------------------------------------------
    12
    13      --- <summary>This function returns value of YES</summary>
    14      --- <param name="none"></param>
    15      --- <exception cref="none"> </exception>
    16      FUNCTION GetyesFlag RETURN VARCHAR2;
    17      PRAGMA RESTRICT_REFERENCES(GetYesFlag,
    18                                 WNDS,
    19                                 WNPS);
    20  END P00_Constants;
    21  /
    Package created.
    SQL> SHOW ERRORS
    No errors.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY P00_Constants AS
      2      ---function getYesFlag
      3      FUNCTION GetYesFlag RETURN VARCHAR2 IS
      4      BEGIN
      5          RETURN YesFlag;
      6      END;
      7  END P00_Constants;
      8  /
    Package body created.
    SQL> SHOW ERRORS
    No errors.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE Test_Constant IS
      2      -- Author  : DPATEL
      3      -- Created : 10/12/2004 8:20:12 AM
      4      -- Purpose : To test the duplicate constants defined in P00_Constants package
      5      -- Public type declarations
      6      FUNCTION getSubType RETURN VARCHAR2;
      7  END Test_Constant;
      8  /
    Package created.
    SQL> SHOW ERRORS
    No errors.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY Test_Constant IS
      2      FUNCTION getSubType RETURN VARCHAR2 IS
      3          mySubType VARCHAR2(10);
      4      BEGIN
      5          mySubType := P00_Constants.SubType201;
      6          RETURN(mySubType);
      7      END;
      8  END Test_Constant;
      9  /
    Package body created.
    SQL> SHOW ERRORS
    No errors.
    SQL>
    SQL> -- Test Script
    SQL> SET SERVEROUTPUT ON
    SQL> BEGIN
      2      Dbms_OutPut.Put_Line('Result is: ' || test_constant.getsubtype);
      3  END;
      4  /
    Result is: 204
    PL/SQL procedure successfully completed.
    SQL> ALTER PACKAGE P00_Constants COMPILE
      2  /
    Package altered.
    SQL> SET SERVEROUTPUT ON
    SQL> BEGIN
      2      Dbms_OutPut.Put_Line('Result is: ' || test_constant.getsubtype);
      3  END;
      4  /
    Result is: 204
    PL/SQL procedure successfully completed.
    SQL>
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>

  • "Connection reset" when trying to access Apple Discussion Forums

    I am unable to log onto the discussion forums from my iBook since changing my ISP to a satellite Broadband service (Bordernet) in Australia. When I attempt to do so I get a message in my browser "The Connection was reset while page was loading."
    I can access the site without problems from a PC on the same LAN without any difficulties - hence my ability to post this message.
    Have also had some intermittent diffiulty in sending emails with (small) attachments (250-400k).
    The ISP help desk suggested I reset the timeout in the Outlook Email program on the Windows machine to maximum. Did that, no change with the iBook.
    Doesn't seem to be a issue of the Apple.com servers being overloaded, as I can fail to manage a log on with the iBook and easily do so with the Windows machine within seconds of switching machines.
    I've also checked that passwords and logon name are the same on both machines.
    Have tried connecting the satellite modem directly to the iBook as well as through the router (a D-Link 704-P) and the speeds are consistent -- so close to the same that they virtually identical.
    Don't have any firewalls set on the iBook or through the router software, only on the Windows machine, and it is the one that works!
    Have set up the proxies and port settings suggested by the ISP (10.16.143.73:9877) which result in a general speed increase earlier on, but did not solve this problem.
    The people at the ISP haven't come up with an answer yet.
    Is there a way to set the timeout on an ibook? (Altough I suspect that this is a red herring as I'm not so sure that settings in an email program will effect other internet settings as well...
    Could there be other settings on the iBook that may be slowing things up enough to make this happen?
    Any ideas?
    IBook 900 mHz   Mac OS X (10.4.5)   640 MB RAM, 80 GB Removable Fireware Drive
    IBook 900 mHz   Mac OS X (10.4.5)   640 MB RAM, 80 GB Removable Fireware Drive

    I'm going to assume you meant... "NsurlerrorDomain: -1005".
    Is it a Linksys Modem?
    By the way... NSURLErrorNetworkConnectionLost
    Returned when a client or server connection is severed in the middle of an in-progress load.
    Available in Mac OS X v10.3 and later.
    Sooo, while it may be something as weird as Satellite alignment/interference, I've read that trashing the whole Users/nnn/Preferences Folder fixid it, but maybe installing Applejack...
    http://applejack.sourceforge.net/
    Once installed, reboot, hold down the CMD+s keys, when the prompt shows, type in "applejack auto", (without the quotes), and let it run all 5 things in the series... thinking maybe a .cache is being held over from your previous setup!?
    Anyway, once you really need Applejack, you can't install it or download it! :_)
    Waiting to see if we get anywhere with this tact.
    Oh yeah, that plist will be regenerated on a restart.

  • Cannot find symbol error when compiling in different packages

    Hey all,
    I'm trying to divide my project into a sensible hierarchy. This is what I want:
    MyProject
    MyProject/src ................................. where all the source files are (no further directories)
    MyProject/classes
    MyProject/classes/Main.class
    MyProject/classes/classes2 ................ sorry for not being creative XD
    MyProject/classes/classes2/Age.classNow, Age uses Main, and this is where the trouble is. I'm using javac directly to compile Age, and this is how I'm doing it:
    //from MyProject
    javac -cp classes src/Age.javaAnd I get this error:
    bla bla bla...cannot find symbol
    symbol  : variable Main
    location: class classes2.Age
              years = (byte)(Main.year - m.getYear());
                             ^Main is already compiled and in place.
    Also, this is how Age.java starts:
    package classes2;
    public class Age
    {...etcI'm using JCreator as an IDE (and using it's own build function, the same error occurs, which is why I tried directly compiling the file).
    Why can't javac find Main.class? I tried searching Google, but my particular problem didn't seem to crop up.
    Hope I provided enough information, and ask if more is needed.
    Many thanks :)

    If Main is not in a package (which it appears not to be), then it cannot be referenced by any class that is in a package. If Main is in a package, then you'll need to refer to it by it's fully-qualified name (or import it as such) if it's not in the same package as the class that's referring to it, and Main.class will have to be in a directory that corresponds to its package.
    Also, though the compiler may not require it, your source code directory structure should match your package hierarchy.

Maybe you are looking for

  • Crosstab - blank cells

    Hello! I want to create a crosstab report that does not have any blank cells when I export to Excel. When I create the crosstab, it automatically does what looks like a group sort. When I export this to excel, there are a lot of blank cells that need

  • How do i get to a previous question I asked to check for replies

    Asked a question about print edit several days ago. How do i get to the question to check for responses? Going back day by day is unacceptable.

  • Issue while perform the Task and Data Audit in Workspace

    Hi All, When we try to perform the task and data audit functions in workspace it throws the following error please advise how to fix this issue. An error has occurred. Please contact your administrator. Show Details: Error Reference Number: {110FD8BF

  • System sizing for BPC 7.0M MS version

    Hi, Sirs In the Scalability Guidelines (Section 2.3) of the Master guide for BPC 7.0M follwing 3 elements are described in the matrix as key factors for system sizing. For example, Medium BPC install 1. Concurrent users = More than 75 concurrent user

  • Finder behaving strange

    Hi everybody, After upgrading to Mac OS X 10.10 Yosemite, my Finder is behaving strange. Every time I open op a new Finder window, it appears like below image. The icons look very strange and they are not clickable, well you can click something and n