Unknown command beginning "recover da..." - rest of line ignored

Hi.
I have one corrupted datafile (status column from v$datafile have value 'RECOVER' for it and I get ORA-01113, ORA-01110 when I try to get it online). It seems I need manually recover datafile via 'RECOVER DATAFILE' command. However when I issue it in SQL*Plus I get: 'unknown command beginning "recover da..." - rest of line ignored.'.
I have Oracle 8.0.5 Database.
Thx

Is this production server If yes 'DON'T touch and get away from that key board' in tom words.
and take a oracle support if you are not familer with recover command.
In case its your testing enviornment the you can take the corrupt datafile offline restore the new from latest backup and for this you should have all archive log from the date of last backup.
after restoring datafile use recover command.
http://www.iselfschooling.com/mc4articles/mc4recovery.htm
go through following link for step by step recovery.

Similar Messages

  • SP2-0042: unknown command "UNION" - rest of line ignored.

    I used sql script for creating DB structure on Oracle 8 with no errors.
    I got "SP2-0042: unknown command "UNION" - rest of line ignored" error on Oracle 9i.
    Do you anybody tell me whats wrong ?

    Sorry, I had technical problems to access this formu to response.
    My script (part):
    CREATE VIEW ARVALUE
    AS
    SELECT IDVALUE FROM DBVALUE;
    CREATE VIEW AWVALUE
    AS
    SELECT DBVALUE.IDVALUE FROM DBVALUE, AWOBJECT
    WHERE DBVALUE.IDOBJECT = AWOBJECT.IDOBJECT;
    CREATE VIEW BSOBJECTUSAGE
    AS
    SELECT IDOBJECT_CHILD AS IDOBJECT, IDOBJECT_PARENT AS REFERRER
    FROM OBJECTREF
    WHERE OBJECTREF.ACTIVE <> 0
    UNION
    SELECT IDOBJECT_TEMPLATE AS IDOBJECT, IDOBJECT AS REFERRER
    FROM DBVALUE
    WHERE (DBVALUE.ACTIVE <> 0) AND (STORAGETYPE = 2)
    UNION
    SELECT IDOBJECT_DIAGEXT AS IDOBJECT, IDOBJECT AS REFERRER
    FROM DBVALUE
    WHERE (DBVALUE.ACTIVE <> 0) AND (STORAGETYPE = 5);
    Log file (part)
    View created.
    View created.
    SP2-0042: unknown command "UNION" - rest of line ignored.
    SP2-0042: unknown command "UNION" - rest of line ignored.
    no rows selected
    View created.
    if I understand, better
    is:
    CREATE VIEW BSOBJECTUSAGE
    AS
    SELECT IDOBJECT_CHILD AS IDOBJECT, IDOBJECT_PARENT AS REFERRER
    FROM OBJECTREF
    WHERE OBJECTREF.ACTIVE <> 0
    UNION SELECT IDOBJECT_TEMPLATE AS IDOBJECT, IDOBJECT AS REFERRER
    FROM DBVALUE
    WHERE (DBVALUE.ACTIVE <> 0) AND (STORAGETYPE = 2)
    UNION SELECT IDOBJECT_DIAGEXT AS IDOBJECT, IDOBJECT AS REFERRER
    FROM DBVALUE
    WHERE (DBVALUE.ACTIVE <> 0) AND (STORAGETYPE = 5);

  • Unknown command ")" rest of line ignored

    Hi,
    Someone please let me know what the error in this DDL is:
    create table W_ASSET_D
    ROW_WID NUMERIC(10,0),
    AAG_NAME varchar2(150),
    AAG_SVC_TYPE varchar2(250),
    ACCOUNTING_MTHD varchar2(50),
    ACCOUNTING_MTHD_I varchar2(50),
    ANN_PERC_RATE NUMERIC(22,7),
    ANN_PERC_YIELD NUMERIC(22,7),
    ASSET_LOB varchar2(50),
    ASSET_LOB_I varchar2(50),
    ASSET_NUM varchar2(100),
    ASSET_TAG varchar2(50),
    ASSET_TYPE varchar2(50),
    ASSET_TYPE_I varchar2(50),
    BILL_STATUS_CD varchar2(50),
    BILL_STATUS_CD_I varchar2(50),
    BUILD_DT TIMESTAMP,
    BUILD_PLANT_CD varchar2(50),
    BUILD_PLANT_CD_I varchar2(50),
    CHANNEL_TYPE_CD varchar2(50),
    CHANNEL_TYPE_CD_I varchar2(50),
    COMMIT_AMT NUMERIC(22,7),
    COMPANY_CD varchar2(50),
    COMPANY_CD_I varchar2(50),
    COMPANY_CODE varchar2(50),
    COMPANY_CODE_I varchar2(50),
    CONDITION varchar2(50),
    CONDITION_I varchar2(50),
    COST_CATEGORY varchar2(50),
    COST_CATEGORY_I varchar2(50),
    CP_RISK_RATE varchar2(50),
    DEALER_RCPT_DT TIMESTAMP,
    DIVIDEND_OPTION varchar2(50),
    DIVIDEND_OPTION_I varchar2(50),
    DLR_INV_PRICE NUMERIC(22,7),
    DOORS_TYPE_CD varchar2(50),
    DOORS_TYPE_CD_I varchar2(50),
    DRIVE_TRAIN_CD varchar2(50),
    DRIVE_TRAIN_CD_I varchar2(50),
    END_DT TIMESTAMP,
    EXT_COLOR_CD varchar2(50),
    EXT_COLOR_CD_I varchar2(50),
    FIRST_SALE_DT TIMESTAMP,
    FLT_CAT_CD varchar2(50),
    FLT_CAT_CD_I varchar2(50),
    FLT_FLG varchar2(1),
    FLT_TYPE_CD varchar2(50),
    FLT_TYPE_CD_I varchar2(50),
    HLTH_ACCNT_TYPE varchar2(50),
    HLTH_ACCNT_TYPE_I varchar2(50),
    INCEPTION_DT TIMESTAMP,
    INSTALL_DT TIMESTAMP,
    INSURED_AMT NUMERIC(22,7),
    INTEREST_RATE NUMERIC(22,7),
    INT_COLOR_CD varchar2(50),
    INT_COLOR_CD_I varchar2(50),
    INVENTORY_LOC varchar2(100),
    LAST_STAT_DT TIMESTAMP,
    LCNS_EXP_DT TIMESTAMP,
    LICENSE_NO varchar2(50),
    LICENSE_STATE varchar2(50),
    MAKE_CD varchar2(50),
    MAKE_CD_I varchar2(50),
    MATURITY_DT TIMESTAMP,
    MINI_WID NUMERIC(10,0),
    MODEL_CD varchar2(50),
    MODEL_CD_I varchar2(50),
    MODEL_YR NUMERIC(10,0),
    MSRP_AMT NUMERIC(22,7),
    NEXT_STAT_DT TIMESTAMP,
    NON_FORFT_OPTION varchar2(50),
    NON_FORFT_OPTION_I varchar2(50),
    ODOMTR_RDG NUMERIC(22,7),
    ODOMTR_UOM varchar2(50),
    ODOMTR_UOM_I varchar2(50),
    ORIG_COST NUMERIC(22,7),
    OVERDRAFTS_YY NUMERIC(10,0),
    OWNER_NAME varchar2(50),
    PEND_CANCEL_FLG varchar2(1),
    PREMIUM NUMERIC(22,7),
    PREMIUM_CLASS varchar2(50),
    PREMIUM_DT TIMESTAMP,
    PRODUCT_NAME varchar2(100),
    PROFIT NUMERIC(22,7),
    PURCHASE_DT TIMESTAMP,
    QTY NUMERIC(22,7),
    RATE_PLAN varchar2(50),
    RATE_PLAN_I varchar2(50),
    RATE_STATE varchar2(15),
    REFERRAL_NAME varchar2(100),
    REGISTERED_DT TIMESTAMP,
    REVENUE NUMERIC(22,7),
    REV_NUM varchar2(50),
    SERIAL_NUM varchar2(100),
    SHIP_DT TIMESTAMP,
    START_DT TIMESTAMP,
    STATUS varchar2(50),
    STATUS_I varchar2(50),
    SUB_STATUS varchar2(50),
    SUB_STATUS_I varchar2(50),
    SUB_TYPE varchar2(50),
    SUB_TYPE_I varchar2(50),
    TRANSMISSION_CD varchar2(50),
    TRANSMISSION_CD_I varchar2(50),
    TRIM_CD varchar2(50),
    TRIM_CD_I varchar2(50),
    U_CURCY_CD varchar2(50),
    U_EXCH_DT TIMESTAMP,
    U_MSRP_AMT NUMERIC(22,7),
    U_MSRP_CURCY_CD varchar2(50),
    U_MSRP_EXCH_DT TIMESTAMP,
    U_ORIG_CST NUMERIC(22,7),
    U_VALUE_AMT NUMERIC(22,7),
    VALUE_AMT NUMERIC(22,7),
    VALUE_BASIS varchar2(50),
    VALUE_BASIS_I varchar2(50),
    VERSION varchar2(50),
    VHCL_TYPE_CD varchar2(50),
    VHCL_TYPE_CD_I varchar2(50),
    VIN_NUM varchar2(100),
    VIS_PR_BU_ID varchar2(30),
    VIS_PR_EMP_ID varchar2(30),
    VIS_PR_POS_ID varchar2(30),
    VIS_PR_POSTN_DH_WID NUMERIC(10,0),
    WRNTY_END_DT TIMESTAMP,
    WRNTY_NAME varchar2(100),
    WRNTY_START_DT TIMESTAMP,
    WRNTY_SUB_TYPE varchar2(50),
    WRNTY_SUB_TYPE_I varchar2(50),
    WRNTY_TYPE varchar2(50),
    WRNTY_TYPE_I varchar2(50),
    CREATED_BY_WID NUMERIC(10,0),
    CHANGED_BY_WID NUMERIC(10,0),
    CREATED_ON_DT TIMESTAMP,
    CHANGED_ON_DT TIMESTAMP,
    AUX1_CHANGED_ON_DT TIMESTAMP,
    AUX2_CHANGED_ON_DT TIMESTAMP,
    AUX3_CHANGED_ON_DT TIMESTAMP,
    AUX4_CHANGED_ON_DT TIMESTAMP,
    SRC_EFF_FROM_DT TIMESTAMP,
    SRC_EFF_TO_DT TIMESTAMP,
    EFFECTIVE_FROM_DT TIMESTAMP,
    EFFECTIVE_TO_DT TIMESTAMP,
    DELETE_FLG varchar2(1),
    CURRENT_FLG varchar2(1),
    W_INSERT_DT TIMESTAMP,
    W_UPDATE_DT TIMESTAMP,
    DATASOURCE_NUM_ID NUMERIC(10,0),
    ETL_PROC_WID NUMERIC(10,0),
    INTEGRATION_ID varchar2(80),
    TENANT_ID varchar2(80),
    X_CUSTOM varchar2(10)
    );

    Script:
    create table W_ASSET_D
    ROW_WID NUMERIC(10,0)
    /Execution:
    SQL> create table W_ASSET_D
      2  (
      3  ROW_WID NUMERIC(10,0)
      4 
    SQL> )
    SP2-0042: unknown command ")" - rest of line ignored.
    SQL> /
    ROW_WID NUMERIC(10,0)
    ERROR at line 3:
    ORA-00907: missing right parenthesis
    SQL> Hint:
    SQL> SET SQLBLANKLINES ON
    SQL> create table W_ASSET_D
      2  (
      3  ROW_WID NUMERIC(10,0)
      4 
      5  )
      6  /
    Table created.
    SQL> SY.

  • Sql select with concate of columns SP2-0734: unknown command beginning

    I am running a ksh script that does some dumpster diving and pull records out.
    It is basically reading a file does a select and at the end, you will see $i.
    AND ORD_ORDER.ADV_ORDER_TEXT_FIELD_568='$';
    I can run the script manually. (without the while loop)
    But, when I run it thru the script I get a whack of errors.
    SP2-0734: unknown command beginning "FROM ADVXR..." - rest of line ignored.
    SP2-0734: unknown command beginning "ADVXRT_HDB..." - rest of line ignored.
    SP2-0734: unknown command beginning "ADVXRT_HDB..." - rest of line ignored.
    SP2-0734: unknown command beginning "ADVXRT_HDB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    What I need it to do is pull the selected records out and place in a file.
    Script
    cat $TICKETS_MISMATCH |while read i
    do
    $SQLPLUS -silent "advxrt_hdb/$LOGONID@hdb" <<EOF >$TICKETS_MISMATCH_FULL
    set feedback off
    set verify off
    set echo off
    set heading off
    set pagesize 7010
    SELECT ORD_ORDER.ADV_ORDER_TEXT_FIELD_568
    || ','
    || ORD_ORDER.ORDER_NUM
    || ','
    || ORD_ORDER.ADV_ORDER_SUMMARY_FIELD_012
    || ','
    || LAB_USER.NAME
    || ','
    || LAB_USER.LOGON_ID
    || ','
    || LAB_USER.ADV_EXTENDED_USER_FIELD_001
    || ','
    || TO_CHAR(MOBILECOMP1_SR.ADV_COMPLETION_TIME_FIELD_001, 'HH24:MI:SS')
    || ','
    || TO_CHAR(MOBILECOMP1_SR.ADV_COMPLETION_DATE_FIELD_001, 'DD-MON-YYYY')
    || ','
    || MOBILECOMP1_SR.ADV_COMPLETION_NOTES_FIELD_001
    || ','
    || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_003
    || ','
    || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_013
    || ','
    || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_014
    || ','
    || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_023
    || ','
    || ORD_JOB_CODE.NAME
    || ','
    || ROUND(ASN_ASSIGNMENT.TOTAL_TIME_EN_ROUTE / 60,0)
    || ','
    || ROUND(ASN_ASSIGNMENT.TOTAL_TIME_ON_SITE / 60,0)
    FROM ADVXRT_HDB.LAB_USER,
    ADVXRT_HDB.SR_REPORT,
    ADVXRT_HDB.ASN_ASSIGNMENT,
    ADVXRT_HDB.ORD_ORDER,
    ADVXRT_HDB.MOBILECOMP1_SR,
    ADVXRT_HDB.ORD_JOB_CODE
    WHERE (ASN_ASSIGNMENT.ASSIGNMENT_ID = SR_REPORT.ASSIGNMENT)
    AND (ASN_ASSIGNMENT.FOR_ORDER = ORD_ORDER.ORDER_ID)
    AND (MOBILECOMP1_SR.MOBILE_COMP1_ID = SR_REPORT.RECORD_NUMBER)
    AND (ORD_ORDER.JOB_CODE = ORD_JOB_CODE.JOB_CODE_ID)
    AND (SR_REPORT.USER_ID = LAB_USER.USER_ID(+))
    AND ORD_ORDER.COMPLETED BETWEEN ((TO_DATE('${date_entered} 00:00:00','YYYY-MM-DD HH24:MI:SS')) - ((SELECT DECODE
    (UTC_OFFSET, NULL, 0, UTC_OFFSET) FROM TZ_UTC_TO_LOCAL TZ WHERE (TO_DATE
    ('${date_entered} 00:00:00','YYYY-MM-DD HH24:MI:SS') BETWEEN TZ.STARTS_UTC AND
    TZ.ENDS_UTC)AND TZ.TIME_AUTHORITY = 1000264000000000000000000013))/(24*60*60))
    AND
    ((TO_DATE('${date_entered} 11:59:59','YYYY-MM-DD HH24:MI:SS')) - ((SELECT DECODE
    (UTC_OFFSET, NULL, 0, UTC_OFFSET) FROM TZ_UTC_TO_LOCAL TZ WHERE (TO_DATE
    ('${date_entered} 11:59:59','YYYY-MM-DD HH24:MI:SS') BETWEEN TZ.STARTS_UTC AND
    TZ.ENDS_UTC)AND TZ.TIME_AUTHORITY = 1000264000000000000000000013))/(24*60*60))
    AND ORD_ORDER.ADV_ORDER_TEXT_FIELD_568='${i}';
    exit;
    EOF
    done

    SQL> DEFINE sqlplusrelease
    DEFINE SQLPLUSRELEASE = "1002000200" (CHAR)
    cat $TICKETS_MISMATCH |while read i
    do
    $SQLPLUS -silent "advxrt_hdb/$LOGONID@hdb" <<EOF >>$TICKETS_MISMATCH_FULL
    set feedback off
    set verify off
    set echo off
    set heading off
    set pagesize 7010
    SET SQLBLANKLINES ON
    SELECT  ORD_ORDER.ADV_ORDER_TEXT_FIELD_568
        || ','
        || ORD_ORDER.ORDER_NUM
        || ','
        || ORD_ORDER.ADV_ORDER_SUMMARY_FIELD_012
        || ','
        || LAB_USER.NAME
        || ','
        || LAB_USER.LOGON_ID
        || ','
        || LAB_USER.ADV_EXTENDED_USER_FIELD_001
        || ','
        || TO_CHAR(MOBILECOMP1_SR.ADV_COMPLETION_TIME_FIELD_001, 'HH24:MI:SS')
        || ','
        || TO_CHAR(MOBILECOMP1_SR.ADV_COMPLETION_DATE_FIELD_001, 'DD-MON-YYYY')
        || ','
        || MOBILECOMP1_SR.ADV_COMPLETION_NOTES_FIELD_001
        || ','
        || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_003
        || ','
        || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_013
        || ','
        || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_014
        || ','
        || MOBILECOMP1_SR.ADV_COMPLETION_TEXT_FIELD_023
        || ','
        || ORD_JOB_CODE.NAME
        || ','
        || ROUND(ASN_ASSIGNMENT.TOTAL_TIME_EN_ROUTE / 60,0)
        || ','
        || ROUND(ASN_ASSIGNMENT.TOTAL_TIME_ON_SITE / 60,0)
    FROM ADVXRT_HDB.LAB_USER,
           ADVXRT_HDB.SR_REPORT,
           ADVXRT_HDB.ASN_ASSIGNMENT,
           ADVXRT_HDB.ORD_ORDER,
           ADVXRT_HDB.MOBILECOMP1_SR,
           ADVXRT_HDB.ORD_JOB_CODE
    WHERE     (ASN_ASSIGNMENT.ASSIGNMENT_ID = SR_REPORT.ASSIGNMENT)
           AND (ASN_ASSIGNMENT.FOR_ORDER = ORD_ORDER.ORDER_ID)
           AND (MOBILECOMP1_SR.MOBILE_COMP1_ID = SR_REPORT.RECORD_NUMBER)
           AND (ORD_ORDER.JOB_CODE = ORD_JOB_CODE.JOB_CODE_ID)
           AND (SR_REPORT.USER_ID = LAB_USER.USER_ID(+))
           AND ORD_ORDER.COMPLETED BETWEEN ((TO_DATE('${date_entered} 00:00:00','YYYY-MM-DD HH24:MI:SS')) - ((SELECT DECODE
                (UTC_OFFSET, NULL, 0, UTC_OFFSET) FROM TZ_UTC_TO_LOCAL TZ WHERE (TO_DATE
                ('${date_entered} 00:00:00','YYYY-MM-DD HH24:MI:SS') BETWEEN TZ.STARTS_UTC AND
                TZ.ENDS_UTC)AND TZ.TIME_AUTHORITY = 1000264000000000000000000013))/(24*60*60))
           AND
                ((TO_DATE('${date_entered} 11:59:59','YYYY-MM-DD HH24:MI:SS')) - ((SELECT DECODE
                (UTC_OFFSET, NULL, 0, UTC_OFFSET) FROM TZ_UTC_TO_LOCAL TZ WHERE (TO_DATE
                ('${date_entered} 11:59:59','YYYY-MM-DD HH24:MI:SS') BETWEEN TZ.STARTS_UTC AND
                TZ.ENDS_UTC)AND TZ.TIME_AUTHORITY = 1000264000000000000000000013))/(24*60*60))
            AND ORD_ORDER.ADV_ORDER_TEXT_FIELD_568='${i}';
    exit
    EOF
    done

  • Unknown command beginning "shutdown i

    Hi dbaguru,
    Can any one provide me solution. i unable to shutdown my dabase it showing below message when i make my database into downmode.
    SQL*Plus: Release 8.0.6.0.0 - Production on Tue Aug 19 14:19:58 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: sys as sysdba
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    unknown SET option beginning "SQLPLUSCOM..."
    SQL> shutdown immediate
    unknown command beginning "shutdown i..." - rest of line ignored.

    It looks like you are using Sqlplus from Oracle 8 to shutdown an Oracle 9 database.
    I think you should logout and check your environment to make sure you are using the correct sqlplus to connect to the correct database.

  • Unknown command beginning  "NODUPLICATES..."

    Hello,
    When I execute this sql script, I get the error below. I'm on Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit. It runs and gives formatted output. Do you have any suggestions as to why I get this error?
    set pagesize 100
    set linesize 100
    column c0 format a10 heading 'Owner Name'
    column c1 format a20 heading 'Table Name'
    column c2 format a20 heading 'Index Name'
    column c3 format a20 heading 'Column Name'
    column c4 format a10 heading 'Uniqueness'
    break on c0 skip1 NODUPLICATES on c1 skip1 NODUPLICATES on c2 skip1
    NODUPLICATES on c4 NODUPLICATES
    select     ...
    unknown command beginning "NODUPLICAT..." - rest of line ignored.
    Edited by: Cerito on May 31, 2013 8:26 AM

    Hi,
    Cerito wrote:
    Hello,
    When I execute this sql script, I get the error below. I'm on Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit. It runs and gives formatted output. Do you have any suggestions as to why I get this error?
    set pagesize 100
    set linesize 100
    column c0 format a10 heading 'Owner Name'
    column c1 format a20 heading 'Table Name'
    column c2 format a20 heading 'Index Name'
    column c3 format a20 heading 'Column Name'
    column c4 format a10 heading 'Uniqueness'
    break on c0 skip1 NODUPLICATES on c1 skip1 NODUPLICATES on c2 skip1It looks like the line below is supposed to be a continuation of the line above.
    NODUPLICATES on c4 NODUPLICATESIf you can't put the entire command on one line, then put a single hyphen ( - ) at the end of the first line, to tell SQL*Plus that the command is continued on the line below, like this:
    break on c0 skip1 NODUPLICATES on c1 skip1 NODUPLICATES on c2 skip1  -
           NODUPLICATES on c4 NODUPLICATES
    select     ...
    unknown command beginning "NODUPLICAT..." - rest of line ignored.
    Edited by: Cerito on May 31, 2013 8:26 AMIn SQL (and also in SQL*Plus) commands are delimited by ; and or /, and a newline is just whitespace. SQL*Plus is a different langauge, with different syntax. In SQL*Plus, newline marks the end of a command, unless you put a hyphen at the end of the line before it.
    Edited by: Frank Kulash on May 31, 2013 11:34 AM
    Edited by: Frank Kulash on May 31, 2013 11:52 AM
    By the way, NODUPLICATES is the default. You might consider just saying
    break on c0 skip1  on c1 skip1  on c2 skip1   on c4so the entire BREAK command fits easily onto 1 line. On the other hand, it's often nice to make the command very clear, even if that means making it longer. In that case, you might want something like:
    BREAK  ON c0  SKIP 1  NODUPLICATES   -
           ON c1  SKIP 1  NODUPLICATES   -
           ON c2  SKIP 1  NODUPLICATES   -
           ON c4             NODUPLICATES

  • SP2-0042: unknown command "end" - rest of line ignored.

    Hi All, below is my code..
    set timing on
    begin
    Delete PB_SURVEY_USER_IMA where Name != 'Login ID';
    Delete PB_SURVEY_USER_IMA where value not like '%@%';
    #Delete PB_SURVEY_USER_IMA where lower(value) like lower('%@pb.com');
    Update PB_SURVEY_USER_IMA
    Set Id = 10557,
    CAN = (      Select Max( account_number)
              from pbaccount
              where member_id in (
                   Select users_id
                   from userreg
                   where userreg.logonid = trim(PB_SURVEY_USER_IMA.value))
    commit;
    Update PB_SURVEY_USER_IMA Set country_id=(Select language_id from users where users_id in (Select users_id from userreg where userreg.logonid = trim(PB_SURVEY_USER_IMA.value)));
    commit;
    end;
    exit;

    Hi,
    This forum is for problems using SQL*Developer and not general SQL or PL/SQL problems.
    It would be better if you opened a new thread in the forum -
    Forum: SQL and PL/SQL
    PL/SQL
    Regards,
    Mike

  • SP2-0042: unknown command " ■c" - rest of line ignored.

    On a 64bit install of oracle, i'm trying to run a script within sqlplus such as @c:/create.sql
    however when i run that, somehow it seems the @ sign as a ■ and screws up my script execution. Has anyone seen this before?

    This is my script that runs everywhere but 64bit:
    prompt *** DROP TABLES ***
    drop table STOCK;
    drop table LEDGER;
    prompt *** CREATE TABLES ***
    prompt LEDGER
    create table LEDGER
         ActionDate DATE,
         Action VARCHAR2(8),
         Item VARCHAR2(30),
         Quantity NUMBER,
         QuantityType VARCHAR2(10),
         Rate NUMBER,
         Amount NUMBER(9,2),
         Person VARCHAR2(25)
    prompt STOCK
    create table STOCK
         Company VARCHAR2(20),
         Symbol VARCHAR2(6),
         Industry VARCHAR2(15),
         CloseYesterday NUMBER(6,2),
         CloseToday NUMBER(6,2),
         Volume NUMBER
    and when i run it i get an error when it's trying to create the table. It seems as if it doesn't understand what i'm trying to tell it.

  • "SP2-0734: unknown command..." error while importing a dump file

    hello,
    i want to import a dump file into my database named orcl, and i come accross the same error after executing the import command. my import command is:
    SQL> imp mvdemo/mvdemo file=mvdemo.dmp full=y ignore=y
    i use oracle 10g enterprise edition.
    i created the user mvdemo/mvdemo.
    the error i see in my screen is:
    SP2-0734: unknown command beginning "imp mvde..." - rest of line ignored.
    for a long period of time, i havent used oracle dbms. before, i remember that i used enterprise manager in import/export processes. however, i am not able to find the enterprise manager in 10g options now. do i have to install the enterprise manager seperately in oracle 10g enterprise edition? may this problem be relational with this matter?
    if someone could answer, i would be greatful.
    best regards

    Import is run from the command prompt, not the SQL prompt.

  • Strange SP2-0042: unknown command in sqlplus

    Hello everyone,i was attemptting to execute a sql statement from an external file. But i got "SP2-0042: unknown command "ï»? - rest of line ignored.". It's works with ANSI but can not based on UTF8 encoding.My file only contains as following :
    spo db_changesfff.log
    SPO OFF
    Anyone has ideas?thanks in advance!!

    We had this problem as well and we noticed that the script file that contained the UTF-8 had two FF FE magic numbers at the beginning of the file. View your file in HEX mode of your text editor and verify that a single FF FE is at the beginning of the file. We created our UTF-8 file using Notepad. This seems to put two FF FE's in the file header. When we removed one set of FF FE, everything worked just fine.

  • EXEC DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE -- Unknown Command ??

    Hi,
    I am trying to create queues as explained here
    http://www.akadia.com/services/ora_advanced_queueing.html
    but I am running into this problem.
    Any ideas how to solve it?
    Thanks!!
    EXEC DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => 'ENQUEUE_ANY',
    grantee => 'my_aq_user_role',
    admin_option => FALSE
    Error starting at line 1 in command:
    EXEC DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
    Error report:
    ORA-06550: rad 1, kolumn 41:
    PLS-00103: Påträffade symbolen ";" då en av följande förväntades:
    + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table continue avg count current exists max min prior sql
    stddev sum variance execute multiset the both leading
    trailing forall merge year month day hour minute second
    timezone_hour timezone_minute timezone_region timezone_abbr
    time timestamp interval date
    <a string literal with character set specification>
    <a nu
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Error starting at line 2 in command:
    privilege => 'ENQUEUE_ANY',
    Error report:
    Unknown Command
    Error starting at line 3 in command:
    grantee => 'my_aq_user_role',
    Error report:
    Unknown Command
    Error starting at line 4 in command:
    admin_option => FALSE
    Error report:
    Unknown Command
    Error starting at line 5 in command:
    Error report:
    Unknown Command

    Look at this example.
    SQL> ed
    Wrote file afiedt.buf
      1  begin
      2  DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
      3  privilege => 'ENQUEUE_ANY',
      4  grantee => 'HR',
      5  admin_option => FALSE
      6  );
      7* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('ENQUEUE_ANY','HR',FALSE);
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(privilege => 'ENQUEUE_ANY',grantee => 'HR',admin_option => FALSE);
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
    BEGIN DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(; END;
    ERROR at line 1:
    ORA-06550: line 1, column 41:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:The problem is when you copied the example, you copied with "enter" character.

  • Shortcut for going to beginning or end of a line in document

    As a previous pc user (but no more! yeah! I love my iMac!) I used to be able to hit home or end to go to the beginning or end of line on the document. Doing it with my iMac actually moves me to the end or beginning of the whole document. What is the shortcut for just wanting to go to the beginning or end of the line on a document?
    Thanks for your help...
    Steve

    Here's a few more, Steve.
    option-up arrow moves you to the beginning of the current paragraph; option-down arrow to the end of the current paragraph.
    Adding Shift to any of the command-arrow or option-arrow combinations will select the text that the insertion point moves over.
    So to select a word, you could press option-left arrow then shift-option right arrow.
    To select a whole line press command-right arrow then shift-command-left arrow.
    And to select a paragraph...
    Regards,
    Barry

  • Unknown command problem

    hi my problem is that i am creating a maze game. the maze is a 2d array of integers. and fed in threw a reader and loaded.
    static void play(){
    try {
    //creates a buffered reader
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    //boolean varible is set to true when the program is running until exit is typed
    boolean running = true;
    while (running){
    //a new String varible which is used for input
    String line = in.readLine();
    //when the game is being played a line string says you typed. + line
    //the +line is what the user typed
    System.out.println("You typed "+line);
    //if the user types south call the south method;
    if(line.startsWith("south")){
    south();
    //if the user types east call the east method
    else if(line.startsWith("east")){
    east();
    //if the user types west call the west method
    else if(line.startsWith("west")){
    west();
    //if the user types north then call the north method
    //this is not case sensitive
    else if(line.equalsIgnoreCase("north")){
    north();
    // check if they have reached the goal
    if(currentX == goalX && currentY == goalY)
    System.out.println("You have reached the goal!");
    //print out the maze after each turn(this was only used for testing purposes)
    print();
    //if the user types exit then change the value of running to false and exit the java console
    //it also calls the equalsIgnoreCase this method will allow entry in any case
    if (line.equalsIgnoreCase("exit")){
    running = false;
    // else
    //          System.out.print( "Unknown command: " + line );
    the problem is that if the user types in an invalid command i want to display this error message.
    when i run the program however i get the error every time even though the move happens the error message is still displayed. i only want the error message to display when an invalid command is typed
    i am a beginner so please use basic language.
    thanks jon

    Use the code formatting tags when you post code.
    hi my problem is that i am creating a maze gameTrue, if you weren't creating a game, you'd probably have no problem.
    threw a readerWhere did you throw it?
    i am a beginner so please use basic language. Put your "unknown command output" and exit check blocks directly after the check for "north"

  • Unknown Command when opening a file

    When I try to open a file created in freehand it tells me
    "could not complete your request because an unknown command was
    encountered." I get this message on a lot of files. However, when I
    go to "my computer" and open the folder containing the file you can
    see the thumbnail and the file is there. I need help.

    > When I try to open a file created in freehand it tells
    me "could not complete
    > your request because an unknown command was
    encountered." I get this message
    > on a lot of files. However, when I go to "my computer"
    and open the folder
    > containing the file you can see the thumbnail and the
    file is there. I need
    > help.
    In most cases, it seems, it is about fonts. FreeHand can't
    find the font used in the document and stumbles in the replace
    function (dialog). Also FreeHand saves information about default
    printer (?!?!) and may get confused there too.
    If you know the fonts used, install, if not reduce the number
    of installed fonts to minimum. Also try to import into new document
    like Judy suggested.
    If you have (access to) Illustrator CS3 try to open the files
    with it. If it works you'll know at least the file is ok.
    Thumbnail is probably the last survivor when the rest of the
    file gets corrupted.
    Jukka

  • Unknown command "" specified error log

    Hi everyone
    ./imsimta version
    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
    Under Messaging Server 7.3 + Veritas Cluster environment, I can see following log in mail.log_XXXX every 1 minutes.
    20-Jan-2010 14:08:25.42 tcp_local B 0 rfc822; '' 500 5.5.1 Unknown command "" specified TCP|logical IP address|25|physical IP address|61239
    I assume that something check SMPT port whether port is healthy or not.
    How cah I remove that line in a lof file?
    Thanks in advance

    leeky41 wrote:
    Under Messaging Server 7.3 + Veritas Cluster environment, I can see following log in mail.log_XXXX every 1 minutes.
    20-Jan-2010 14:08:25.42 tcp_local B 0 rfc822; '' 500 5.5.1 Unknown command "" specified TCP|logical IP address|25|physical IP address|61239
    I assume that something check SMPT port whether port is healthy or not.That is a fair assumption -- especially if that line occurs with a constant frequency.
    How cah I remove that line in a lof file?You can use the LOG_ACTION mapping table to hide specific log lines as described here:
    http://wikis.sun.com/display/CommSuite/Triggering+Effects+From+Transaction+Logging.+The+LOG_ACTION+Mapping+Table#TriggeringEffectsFromTransactionLogging.TheLOG_ACTIONMappingTable-Disablingloggingofconnectionsfromaperiodicmonitoringsource
    In your case you would add a "B" line as well.
    Regards,
    Shane.

Maybe you are looking for

  • Can't use quicktime, no rights.I have I

    I have just discovered when i was going to install safari, just to try it, i get a Windows Installer can't be open error. And that happen to all apple software. And quicktime IS installed, BUT i don't have any rights to it, AND i can't UNINSTALL IT!

  • Is page attribute 'table' limited to 12 fields?

    hi, i am on WAS 6.20. in an bsp under rider type-definitions i need to create a type, which consists of more than 12 fields. i found out, that a) only string types are possible and b) apparently max. 12 fields are possible i create an internal table

  • I need to know how to authorize or deauthorize a computer when the email address attached to it no longer exists.

    I need to know how to authorize or deauthorize a computer when the email address attached to it no longer exists I can't access the account because your system doesn't recognize the last password -- and it won't let me change the password because it

  • Green Line on right side of exported video Premiere Pro

    Hi, when I export my footage I am seeing a slight green line on the right edge of the frame, no matter the media player and is visible as well on youtube and vimeo uploads.  I am making sure it is exported at 1280x720 as that is the aspect ratio I am

  • Extending kPMColorBoss Class

    I want to extend kPMColorBoss so that any swatch created by my plug-in will have a text string associated with it. In my .fr file, I added the following: AddIn   kPMColorBoss,   kInvalidClass,     IID_ISTRINGDATA, kStringDataImpl, I added the followi