If I run my query in Oracle, it runs without error, but when I run inside c# gives ORA-00911: invalid character

I like to run below myQuery in c#, but saw the error. No idea what is the problem? If I'm running myQuery in Oracle, it runs without error. "I put all the +" before starting the myQuery line and "end of the line. but nothing changes.

myQuery =

with the CBC as

(

Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

all_tab_columns CBC

left join (select Cc.Column_Name, Uc.Constraint_Type

of user_cons_columns cc, uc user_constraints

where Cc.Constraint_Name = Uc.Constraint_Name

and Cc.Table_Name = Uc.Table_Name) t

on T.Column_Name = Src.Column_Name

where table_name = 'INSTRUCTOR' and owner = "ERHAN"

),

As TGT

(

Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

from all_tab_columns tgt

left join (select Cc.Column_Name, Uc.Constraint_Type

of user_cons_columns cc, uc user_constraints

where Cc.Constraint_Name = Uc.Constraint_Name

and Cc.Table_Name = Uc.Table_Name) t

on T.Column_Name = TGT. Column_Name

where table_name = 'INSTRUCTOR' and owner = "SARIGUL"

),

col_details as

(

Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

the CBC

outer join full tgt

on)

SRC.src_col_name = tgt.tgt_col_name

)

)

Select *.

de)

Select the case sensitive option

When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||

-case when src_data_type null ('DATE') then

on the other

case

When src_data_type in ('VARCHAR', 'VARCHAR2')

then ' (' |) NVL (to_char (src_data_len), ' ') | ') '

otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

end

end

||

cases where tgt_nullable = 'Y' then 'null '.

of another end 'not null '.

|| tgt_cons

When tgt_col_name is null

then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

-case when src_data_type null ('DATE') then

on the other

case

When src_data_type in ('VARCHAR', 'VARCHAR2')

then ' ('| nvl (to_char (src_data_len), ' ') |) ') '

otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

end

end

|| tgt_cons

When src_col_name is null

then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

end alter_statement

of col_details

)

where alter_statement is not null;

using (OracleConnection conn1 = new OracleConnection (connectionString))

{

conn1. Open();

Dim myQuery = "";

using (OracleCommand = new OracleCommand (myQuery, conn1) crtCommand)

{

richTextBox1.AppendText (output);

richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());

richTextBox1.AppendText (output);

}

}

VR;

myQuery=
@"with src as
(
...
";

That means a @ before the beginning of a string literal mean? -C# Foire - Site Home - MSDN Articles

as an example

OracleCommand cmd = con.CreateCommand();
cmd.CommandText = @"begin apps.mo_global.init('SQLAP'); begin apps.fnd_global.apps_initialize(5710, 20639, 200); end; end;";
cmd.ExecuteNonQuery();

richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());                            

is this correct? Not sure

as example try

 using (OracleConnection conn1 = new OracleConnection(connectionString))
{
    conn1.Open();

    string myQuery = "......";                  

    using (OracleCommand crtCommand = new OracleCommand(myQuery, conn1))
        {
            richTextBox1.AppendText(Environment.NewLine);
            // richTextBox1.AppendText(crtCommand.ExecuteNonQuery().ToString());

OracleDataReader reader = crtCommand.ExecuteReader();
while (reader.Read())
  {
    richTextBox1.AppendText(reader.GetString(0));
    // may be also
    // richTextBox1.AppendText(Environment.NewLine);
  }

            richTextBox1.AppendText(Environment.NewLine);

        reader.Dispose();
        cmd.Dispose();
        }

    con.Dispose();
}

Tags: Database

Similar Questions

  • The AUDIT command in, oracle apex (version 4.2.5.00.08), error "ORA-00911: invalid character '.

    I am trying to run

    "AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"

    in "SQL commands" on oracle-apex (version 4.2.5.00.08).

    I get the error message ' ORA-00911: invalid character '.

    Can someone tell me the solution for this?

    Apex environment we need to set the database AUDIT_TRAIL to TRUE for the control

    "AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"  to work.

    By their Summit, to be able to change the setting of database AUDIT_TRAIL we have to log-in as a DBA from the link "SQL workshop--> utilities--> on the database.

  • Error trivial Drives Me Crazy - ORA-00911: invalid character - Oracle 10 g

    I have no idea where I was wrong. I get this ORA-00911: invalid character
    I looked at the excerpt from tons of times, but could not find a glitch. Code appear nested into a TOAD
    CREATE TABLE RoomAssociates
    (
         roomAssociatesID           NUMBER(7)                                     , CONSTRAINT roomasso_roomassoid_pk                            PRIMARY KEY(roomAssociatesID)                                                         ,                                                     
         roomID                       NUMBER(7)                                        CONSTRAINT roomasso_roomid_nn                                NOT NULL                                                                                     ,
                                                                                           CONSTRAINT roomasso_roomid_fk                            FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE               ,
         roomFacilityID              NUMBER(7)                                      CONSTRAINT roomasso_roomfid_nn                                NOT NULL                                                                                         ,
                                                                                           CONSTRAINT roomasso_roomfid _fk                             FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID)          ,
         enSuitID                   NUMBER(7)                                         CONSTRAINT roomasso_ensuitid_nn                             NOT NULL                                                                                          ,
                                                                                           CONSTRAINT roomasso_ensuitid_fk                       FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );

    Now, this will work:

    CREATE TABLE RoomAssociates
    (
         roomAssociatesID           NUMBER(7)                                     , CONSTRAINT roomasso_roomassoid_pk                            PRIMARY KEY(roomAssociatesID)                                                         ,
         roomID                       NUMBER(7)                                        CONSTRAINT roomasso_roomid_nn                                NOT NULL                                                                                     ,
                                                                                           CONSTRAINT roomasso_roomid_fk                            FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE               ,
         roomFacilityID              NUMBER(7)                                      CONSTRAINT roomasso_roomfid_nn                                NOT NULL                                                                                         ,
                                                                                           CONSTRAINT roomasso_roomfid_fk                             FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID)          ,
         enSuitID                   NUMBER(7)                                         CONSTRAINT roomasso_ensuitid_nn                             NOT NULL                                                                                          ,
                                                                                           CONSTRAINT roomasso_ensuitid_fk                       FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );
    

    The error is here:

    CONSTRAINT roomasso_roomfid _fk
    

    Better formatting:

    CREATE TABLE RoomAssociates
    ( roomAssociatesID NUMBER(7), CONSTRAINT roomasso_roomassoid_pk PRIMARY KEY(roomAssociatesID),
      roomID           NUMBER(7)  CONSTRAINT roomasso_roomid_nn     NOT NULL,
                                  CONSTRAINT roomasso_roomid_fk FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE,
      roomFacilityID   NUMBER(7)  CONSTRAINT roomasso_roomfid_nn NOT NULL,
                                  CONSTRAINT roomasso_roomfid_fk FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID),
      enSuitID         NUMBER(7)  CONSTRAINT roomasso_ensuitid_nn     NOT NULL,
                                  CONSTRAINT roomasso_ensuitid_fk FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]

    Published by: Massimo Ruocchio, December 19, 2009 12:05 AM

  • error 1 when running standalone executable

    Hey everybody,

    I'm having some trouble with an app that I'm building in an executable file. Now, it seems that everything is build without errors, but when I go to run the executable file I get a weird 1 error from one of LabVIEW built in libraries. I tried to do remote debugging, but I do not see the error pop up in my code anywhere, so I'm a bit confused as to what is happening.

    The error does not collect until after I click on a button that loads a VI in a secondary school (high school even load the correct VI). Also, I don't get any errors when I run the VI in the development environment.

    I have attached a picture of what the error said.

    Thanks in advance for the help.

    Ryan

    Your error message indicates that the error is from the VI who writes in a configuration file and has nothing to do with the sub-panels or the reset of values. You're probably update a configuration file with certain values or something. You show your real code makes it, but if I had hazad a guess I would ask are you aware of this: why my executable not working when using the VI Constant current path?

    As for your question on the application path: http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/app_appdir_path/

  • I use the same query in two difference db (exp/imp) but run different times!

    Hello

    I have 2 database. One of the remote server, one at my local. I used exp/imp to retrieve data from remote to my local database. Structers, tables and indexes is the same.
    My local machine is more powerful than the remote computer. (Ram, cpu County ext)

    But when I connect remotely from my local computer, this application runs 4 second (with view). But when I connect to my local db, this query run 5 minutes.
    Number of rows returned is 18,500

    What's wrong? Why get the bytes of the value are different?

    Local explain plan is:
    SELECT STATEMENT ALL_ROWS Cost: 203 Bytes: 19,062,160 Cardinality: 18,329                                         
    Remote control explain plan is:
    SELECT STATEMENT ALL_ROWS Cost: 226 Bytes: 3,855,214 Cardinality: 18,446                                         
    My plans to explain (remote and the) and other (auto track, oracle params) data is in excel file (because of this forum not to accept more than 30,000 words);

    http://www.eksicevap.com/tech/explainplan.xls
    for winrar:
    http://www.eksicevap.com/tech/explainplan.rar

    Thanks for help

    Oracel version information:
    Local:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    Distance:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

    Published by: Melike on 15.Mar.2011 02:42

    Published by: Melike on 15.Mar.2011 03:39

    Melike says:
    Thanks, Johan, I'll try.
    My first post for local oracle param, I got it 3 days ago. or I confuse my file params to oracle. (This problem continues from last week)
    Now I'm waiting still current oracle local params and these value is worse:

    Local:
    pga_aggregate_target 0
    SGA_MAX_SIZE 536.870.912
    SGA_TARGET 0

    I update the new oracle local params in my previous message.

    I'll try the update of these values, but I hope, my local oracle is not drop down :)

    Can't be worse...
    You have a parameter memory_target (and max_memory_target)? If so, you could add memory to these settings as well and only set pga_aggregate_target (no CMS or sga_max)

    My settings (on a test/dev/lab-box):
    System@oracle11 SQL > see the memory settings

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    hi_shared_memory_address integer 0
    whole big memory_max_target 3G
    whole large memory_target 3G
    shared_memory_address integer 0
    System@oracle11 SQL > show parameter sga

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    lock_sga boolean FALSE
    PRE_PAGE_SGA boolean FALSE
    SGA_MAX_SIZE large integer 0
    SGA_TARGET large integer 0
    System@oracle11 SQL > show parameter pga

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    pga_aggregate_target large integer 0

    This way I pushed things like Oracle by itself, memory allocation to everywhere where oracle needs him the most.

    Brgds
    Johan

  • Error message when I run delete the query in SQL Server 2008.

    Error message when I run delete the query in SQL Server 2008 SP3.

    Error message:

    MSG 0, level 11, State 0, line 0
    A serious error occurred on the current command.  The results, if any, should be discarded.

    I never got any problem since 5 years.

    Please let me know what is the cause of the problem.

    You can get a response better/faster if repost you your question in the instances of SQL Server dedicated from Microsoft here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    Thank you.   :)

    (I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)

  • pass the query to oracle

    Hi all

    How can I send a query to oracle using cfstoredprod?

    Try this:

    < datasource = "" #application.dsn # cfstoredproc "procedure =" #importTable #">"

    < cfprocparam type = 'in' cfsqltype = "cf_sql_refcursor" value = "#myQuery #" >

    < / cfstoredproc >

    The Oracle code:

    Procedure importTable (v_table IN SYS_REFCURSOR) is

    Error: [Oracle JDBC Driver] impossible to determine the type of the specified object.

    Any ideas?

    Thanks in advance.

    Get your drives and put them in a query object (if they aren't already), let's call it getRecs, and:

    
    INSERT ALL
       
          INTO schema.tableName(columnA, columnB, columnC, etc)
          VALUES (,,,)
       
       SELECT * FROM DUAL
    
    

    You must include the "SELECT * FROM DUAL" after the loop to exit.  Connect it to your database (Oracle), insert all the lines and disconnect.  Place it in a CFTRANSACTION tag to make sure that they are all inserted or all cancelled.

    HTH,

    ^_^

  • SQL Query for Oracle DB followed by using vCOPS

    Hi guys,.

    I installed a general SQL adapter to monitor an Oracle database in my environment. But I am not able to make it work there are a lot of problems in writing a SQL Quries. I work with one of the DBA and we are still not able to write the query to the right. Can someone give me an example of a query so that I can test it or tell me how to write the query to Oracle DB. Examples of files that are given under/samples/folder conf in the plug-in does not help us. So if someone has a link or if someone has it please help me with query files.

    Thanks in advance

    fix. the biggest challenge with the SQL adapter is to write the query in such a way the release of product that is easily consumable by vcops and maps directly to RESOURCEKIND and RESOURCENAME in vcops. The result can also be hierarchical for more efficiency, i.e.

    metric

    -submetric1

    -submetric2

  • Convert the SQL query to Oracle

    Hi all

    I have two SQL queries to create the table.

    Query1.

    CREATE TABLE [dbo]. [DocumentType] (
    [DocType] [varchar] (20) GATHER SQL_Latin1_General_CP1_CI_AS NOT NULL,.
    [SubCat] [varchar] (20) GATHER SQL_Latin1_General_CP1_CI_AS NOT NULL
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo]. [DocumentType] ADD
    CONSTRAINT [PK_DocumentType] PRIMARY KEY CLUSTER
    (
    [DocType],
    [SubCat]) ON [PRIMARY]


    Query2.

    CREATE TABLE [dbo]. [SBU] (
    [SBU] [varchar] (51) GATHER SQL_Latin1_General_CP1_CI_AS NOT NULL
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo]. [SBU] ADD
    [PK_SBU] CLUSTERED PRIMARY KEY CONSTRAINT
    (
    [SBU]
    ) ON [PRIMARY]

    What will be the query in Oracle?

    Please suggest!
    Kind regards
    Shah

    Query1.

    CREATE TABLE dbo. DocumentType)
    DocType varchar2 (20) NOT NULL,
    SubCat varchar (20) NOT NULL,
    CONSTRAINT PK_DocumentType PRIMARY KEY (DocType, SubCat)
    )
    /

    Query2.

    CREATE TABLE dbo. SBU)
    SBU varchar2 (51),
    CONSTRAINT PK_SBU PRIMARY KEY (UDF)
    )
    /

    It is useful for you?

    Published by: insa on June 12, 2012 22:42

  • to run the Oracle 10 g without jinitiator forms

    Hello, I am working with version 10 g 2 with jinitiator. Can you explain how to configure the system to run the Oracle 10 g without jinitiator forms?

    Thank you

    You can see this article of Francis, which explains how to use the form with the plugin from Sun.

    [http://fdegrelle.over-blog.com/article-4135746.html]

    Hope it helps you,
    Fabrizio.

    If this answer is useful or appropriate, please mark. Thank you.

  • Need to query SQL - oracle 8i

    Hello

    We use Oracle 8i (Oracle8i Enterprise Edition Release * 8.1.7.4.0 - 64 bit Production *).

    My requirement is-

    I need output like

    User_name company

    Suri 01,86,65
    Srinu 01,86,65


    Here are examples of data.
    WITH t AS ( SELECT 'SURI' user_name ,'01' Company FROM dual UNION ALL
                SELECT 'SURI' user_name, '86' Company FROM dual UNION ALL
                SELECT 'SURI' user_name ,'65' Company FROM dual UNION ALL
                SELECT 'SRINU' user_name, '01' Company FROM dual UNION ALL
                SELECT 'SRINU' user_name ,'86' Company FROM dual UNION ALL
                SELECT 'SRINU' user_name ,'65' Company FROM dual )
    SELECT * FROM t ;
    
    
    USER_NAME     COMPANY
    SURI              01
    SURI              86
    SURI              65
    SRINU              01
    SRINU              86
    SRINU              65
    Thank you very much in advance for the help.

    Thank you
    Suri

    Hello

    Suri wrote:
    ... Only one doubt ROW_NUMBER will work in Oracle 8i?

    What happens when try you it?

    It's in the manual of the SQL language for your version?
    http://docs.Oracle.com/CD/A87860_01/doc/server.817/a85397/index.htm

  • An error occurred when querying for the pending operations

    Original title: sysprep problem
    I have an acer aspire 5738Z, I use windows 7 (64 bit) I try to open sysprep.exe and it does not open, a text box appears saying "an error occurred when querying for the pending operations. What can I do to fix this?

    Hello

    Thanks for posting the request in the Microsoft community forums.
    I understand that you receive the error "an error has occurred when querying for outstanding operations" when trying to open sysprep.exe on the computer.

    You can try the solutions provide and check if it helps solve the issue.

    Method 1:
    You can scan System File Checker to fix corrupted files.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Method 2:
    If the steps above fail then you can try the steps and check.

    a. run regedit by typing regedit in start search by pressing ENTER.
    b navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    Key: RegistrySizeLimit
    Type: REG_DWORD
    Value: 0xffffff (4294967295)
    c. reset.

    If you need help with Windows, keep us informed. We will be happy to help you.

  • Running server error"fail"when you try to use Windows Media Player.

    Title: windows media player error

    If I open the windows the start media player by clicking on menu it works fine but when mp3 or any video file it says Server execution fails

    Hi friend,

    Thanks for posting your query in Microsoft Community.
     
    I understand from the description of the question, you have a problem with Windows Media Player. I'll be happy to help you with this problem.
     
    (1) did you do changes on the computer before this problem?
     
    Method 1: I suggest you follow the steps to run the troubleshooter from the link and if it helps.
    Open the troubleshooting Windows Media Player settings Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter
     
    Method 2: I suggest to make Windows Media Player as the default player, and check if the problem persists.
    Change the programs that Windows uses by default
     
    I hope this helps. Try the above steps and get back to us for more assistance and with the requested details, if the problem is not resolved.
  • R12.2.5 Installation on OL 7.1 ERROR: RW-50010: error:-script returned an error: 1 RW-50004: error code when you run the external process.  Check the log file for more details

    I tried to install EBS 12.2.5 on OL 7.1 with rapidwiz and got this error when applying the unique patches in second File System

    "Second system logfile file - /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/logs/12021641.log.

    LOG FILE:

    _____________________________________________________________________________________________________________________________

    Step 0-8

    Command: /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/adrunfmw.sh

    Step 4 of 8: UNIX making pretreatment

    Running: chmod 777/db/oracle/OraInventory r

    chmod-r 777/db/oracle/OraInventory succeeded

    Step 4 of 8

    Performance: known appltest - c "/ app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/adrunfmw.sh".

    PHASE of INSTALLATION has BEGUN: APPS TECH STACK: Wed Dec 2 17:27:07 IST 2015

    runProcess_1

    StatusString installation of Applications Technology Stack

    Copy the temp area models

    Inventory name is: app_oracle_TEST_fs2_Oracle_EBS_app

    One-time fixes copy to temp area

    Remove JDK_TOP: / app/oracle/TEST/fs2/EBSapps/comn/util/jdk32 if there is

    / App/oracle/TEST/fs2/EBSapps/comn/util/jdk32 deleted directory

    Installation of WebLogic Server.

    With the help of /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWLS.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWLS.xml oracle.apps.fnd.txk.config.InstallService

    WebLogic Server successfully installed

    Web Tier utility installation.

    With the help of /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWeb.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWeb.xml oracle.apps.fnd.txk.config.InstallService

    Level successfully installed Web utilities

    Registration EBSUsing /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instEBS.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instEBS.xml oracle.apps.fnd.txk.config.InstallService

    EBS registered successfully

    Rename/home/appltest/bea/beahomelist in /home/appltest/bea/beahomelist.29266 to avoid problems during WLS

    patching

    / Home/appltest/Bea/beahomelist renamed successfully.

    Application of ad hoc patches

    With the help of /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instASpatches.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instASpatches.xml oracle.apps.fnd.txk.config.InstallService

    Fatal error: T2K install Service

    oracle.apps.fnd.txk.config.ProcessStateException: OPatch process failed: Output = 1 see log for more details. CMD = perl /app/oracle/TEST/fs2/FMW_Home/webtier/OPatch/opatch.pl apply - verbose - silent - ocmrf /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd/admin/template/txkForms_ocm.rsp jdk - / app/oracle/TEST/fs2/FMW_Home/webtier/jdk/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/patches/7695070/7695070

    at oracle.apps.fnd.txk.config.OPatchActionNode.processState(OPatchActionNode.java:312)

    at oracle.apps.fnd.txk.config.PatchActionNode.processState(PatchActionNode.java:187)

    at oracle.apps.fnd.txk.config.PatchNode.processState(PatchNode.java:338)

    at oracle.apps.fnd.txk.config.PatchesNode.processState(PatchesNode.java:79)

    at oracle.apps.fnd.txk.config.InstallNode.processState(InstallNode.java:68)

    at oracle.apps.fnd.txk.config.TXKTopology.traverse(TXKTopology.java:594)

    at oracle.apps.fnd.txk.config.InstallService.doInvoke(InstallService.java:224)

    at oracle.apps.fnd.txk.config.InstallService.invoke(InstallService.java:237)

    at oracle.apps.fnd.txk.config.InstallService.main(InstallService.java:291)

    Can not install the unique patches

    RW-50010: error:-script returned an error: 1

    RW-50004: Error Code when you run the external process.  Check the log file for more details.


    It was recorded in /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/logs/12021641.log and I don't know how to find another newspaper for such details as mentioned in this journal. Please help me with that.


    Concerning

    KasunA

    Found a workaround.  The problem is that, before the 7695070 patch is applied, the installation program backup directory/apps/fs2/FMW_Home/webtier/jdk in /apps/fs2/FMW_Home/webtier/jdk_backup_existing_version, but then it clears. / jdk - the patch fails because it can't find it.  I had to rename the directory of the jdk for jdk2, and as soon as it gets deleted quickly and rename jdk2 jdk.  Then he applies the patches without problem.  A symbolic link would do the same thing.

  • ORA-29283: invalid file operation, SP2-0103: nothing in the SQL buffer to run.

    Hi gurus of the Oracle,.

    Our version of oracle's 11 g RAC 2.

    We write records into a file using utl_file.

    According to the request, data should write to 160 files.

    After writing to 50 records, his mistake to launch. as

    BEGIN PROC_WRITE_TO_FILE; END;

    *

    ERROR on line 1:

    ORA-29283: invalid file operation

    ORA-06512: at "SYS." UTL_FILE", line 536

    ORA-29283: invalid file operation

    ORA-06512: at "TEST. PROC_WRITE_TO_FILE', line 130 '.

    ORA-06512: at line 1

    SQL > SP2-0103: nothing in the SQL buffer to run.

    My procedure is

    -DECLERATION

    BEGIN

    OPEN C2;

    LOOP

    EXTRACT THE C2 IN P_WRITE;

    WHEN THE EXIT C2% NOTFOUND;

    L_NAME: = "WRITE" | P_WRITE | » _. TXT';

    L_FILE: = UTL_FILE. FOPEN (L_DIR, L_NAME, 'W');

    OPEN C1 (P_WRITE);

    LOOP

    FETCH C1 INTO P_OD_PLACE, P_OD_USER, P_ED_PERF, P_GM_LST, P_GM_FIRST, P_GM_MOD, P_GM_SUFF, P_BD_NUM, P_BD_FRET, P_BD_UNIT, P_BD_GOLE, P_BD_GEP, P_DAT_BOD, P_DAT_EFF, P_ED_RACE, P_ED_GENDER, P_LAND_DIST, P_LAND_LOT, P_ED_STAT_REASON ,P_OD_PRECINCT,P_OD_JANI_PREC,P_NB_PIST_CNG,P_NB_PIST_SEN,P_NB_PIST_VASER,P_NB_PIST_JUD,P_NB_PIST_COMMI,P_NB_PIST_SCHOL,P_NB_PIST_WD,P_NB_PIST_JANIB,P_NB_PIST_JANIC,P_NB_PIST_FIRE,P_NB_PIST_SCHOB,P_NB_PIST_SUPCM,P_NB_PIST_WATBD,P_NB_PIST_GOLEL P_GM_NAME, P_ED_JANI_CODE, P_DAT_ACCEPT, P_DAT_CHANGED, P_OD_COMBO, P_TX_DESC, P_DAT_LST_CTT, P_BD_NUM2, P_BD_FRET1, P_BD_UNIT2, P_BD_GOLE2, P_BD_ST, P_BD_GEP5, P_BD_GEP4, P_BD_FRET2, P_BD_FRET3, P_BD_COUNTRY;

    WHEN EXIT C1% NOTFOUND;

    UTL_FILE. PUT_LINE (L_FILE, P_OD_PLACE: ' |) ' || P_OD_USER |' | ' || P_ED_PERF |' | ' || P_GM_LST |' | ' || P_GM_FIRST |' | ' || P_GM_MOD |' | ' || P_GM_SUFF |' | ' || P_BD_NUM |' | ' || P_BD_FRET |' | ' || P_BD_UNIT |' | ' || P_BD_GOLE |' | ' || P_BD_GEP |' | ' || P_DAT_BOD |' | ' || P_DAT_EFF |' | ' || P_ED_RACE |' | ' || P_ED_GENDER |' | ' || P_LAND_DIST |' | ' || P_LAND_LOT |' | ' || P_ED_STAT_REASON |' | ' || P_OD_PRECINCT |' | ' || P_OD_JANI_PREC |' | ' || P_NB_PIST_CNG |' | ' || P_NB_PIST_SEN |' | ' || P_NB_PIST_VASER |' | ' || P_NB_PIST_JUD |' | ' || P_NB_PIST_COMMI |' | ' || P_NB_PIST_SCHOL |' | ' || P_NB_PIST_WD |' | ' || P_NB_PIST_JANIB |' | ' || P_NB_PIST_JANIC |' | ' || P_NB_PIST_FIRE |' | ' || P_NB_PIST_SCHOB |' | ' || P_NB_PIST_SUPCM |' | ' || P_NB_PIST_WATBD |' | ' || P_NB_PIST_GOLEL |' | ' || P_GM_NAME |' | ' || P_ED_JANI_CODE |' | ' || P_DAT_ACCEPT |' | ' || P_DAT_CHANGED |' | ' || P_OD_COMBO |' | ' || P_TX_DESC |' | ' || P_DAT_LST_CTT |' | ' || P_BD_NUM2 |' | ' || P_BD_FRET1 |' | ' || P_BD_UNIT2 |' | ' || P_BD_GOLE2 |' | ' || P_BD_ST |' | ' || P_BD_GEP5 |' | ' || P_BD_GEP4 |' | ' || P_BD_FRET2 |' | ' || P_BD_FRET3 |' | ' || P_BD_COUNTRY);

    UTL_FILE. FFLUSH (L_FILE);

    END LOOP;

    CLOSE C1;

    END LOOP;

    CLOSE C2;

    UTL_FILE. FCLOSE (L_FILE);

    END;

    /

    Appreciate your suggestions.

    Thank you and best regards,

    REDA

    You understand, but you can't do it?  What?  Move a single line in the right place?

    * sigh * I wish I was your code monkey...

    -DECLERATION

    BEGIN

    OPEN C2;

    LOOP

    EXTRACT THE C2 IN P_WRITE;

    WHEN THE EXIT C2% NOTFOUND;

    L_NAME: = "WRITE" | P_WRITE | » _. TXT';

    L_FILE: = UTL_FILE. FOPEN (L_DIR, L_NAME, 'W');

    OPEN C1 (P_WRITE);

    LOOP

    FETCH C1 INTO P_OD_PLACE, P_OD_USER, P_ED_PERF, P_GM_LST, P_GM_FIRST, P_GM_MOD, P_GM_SUFF, P_BD_NUM, P_BD_FRET, P_BD_UNIT, P_BD_GOLE, P_BD_GEP, P_DAT_BOD, P_DAT_EFF, P_ED_RACE, P_ED_GENDER, P_LAND_DIST, P_LAND_LOT, P_ED_STAT_REASON ,P_OD_PRECINCT,P_OD_JANI_PREC,P_NB_PIST_CNG,P_NB_PIST_SEN,P_NB_PIST_VASER,P_NB_PIST_JUD,P_NB_PIST_COMMI,P_NB_PIST_SCHOL,P_NB_PIST_WD,P_NB_PIST_JANIB,P_NB_PIST_JANIC,P_NB_PIST_FIRE,P_NB_PIST_SCHOB,P_NB_PIST_SUPCM,P_NB_PIST_WATBD,P_NB_PIST_GOLEL P_GM_NAME, P_ED_JANI_CODE, P_DAT_ACCEPT, P_DAT_CHANGED, P_OD_COMBO, P_TX_DESC, P_DAT_LST_CTT, P_BD_NUM2, P_BD_FRET1, P_BD_UNIT2, P_BD_GOLE2, P_BD_ST, P_BD_GEP5, P_BD_GEP4, P_BD_FRET2, P_BD_FRET3, P_BD_COUNTRY;

    WHEN EXIT C1% NOTFOUND;

    UTL_FILE. PUT_LINE (L_FILE, P_OD_PLACE: ' |) ' || P_OD_USER |' | ' || P_ED_PERF |' | ' || P_GM_LST |' | ' || P_GM_FIRST |' | ' || P_GM_MOD |' | ' || P_GM_SUFF |' | ' || P_BD_NUM |' | ' || P_BD_FRET |' | ' || P_BD_UNIT |' | ' || P_BD_GOLE |' | ' || P_BD_GEP |' | ' || P_DAT_BOD |' | ' || P_DAT_EFF |' | ' || P_ED_RACE |' | ' || P_ED_GENDER |' | ' || P_LAND_DIST |' | ' || P_LAND_LOT |' | ' || P_ED_STAT_REASON |' | ' || P_OD_PRECINCT |' | ' || P_OD_JANI_PREC |' | ' || P_NB_PIST_CNG |' | ' || P_NB_PIST_SEN |' | ' || P_NB_PIST_VASER |' | ' || P_NB_PIST_JUD |' | ' || P_NB_PIST_COMMI |' | ' || P_NB_PIST_SCHOL |' | ' || P_NB_PIST_WD |' | ' || P_NB_PIST_JANIB |' | ' || P_NB_PIST_JANIC |' | ' || P_NB_PIST_FIRE |' | ' || P_NB_PIST_SCHOB |' | ' || P_NB_PIST_SUPCM |' | ' || P_NB_PIST_WATBD |' | ' || P_NB_PIST_GOLEL |' | ' || P_GM_NAME |' | ' || P_ED_JANI_CODE |' | ' || P_DAT_ACCEPT |' | ' || P_DAT_CHANGED |' | ' || P_OD_COMBO |' | ' || P_TX_DESC |' | ' || P_DAT_LST_CTT |' | ' || P_BD_NUM2 |' | ' || P_BD_FRET1 |' | ' || P_BD_UNIT2 |' | ' || P_BD_GOLE2 |' | ' || P_BD_ST |' | ' || P_BD_GEP5 |' | ' || P_BD_GEP4 |' | ' || P_BD_FRET2 |' | ' || P_BD_FRET3 |' | ' || P_BD_COUNTRY);

    UTL_FILE. FFLUSH (L_FILE);

    END LOOP;

    CLOSE C1;

    UTL_FILE. FCLOSE (L_FILE);

    END LOOP;

    CLOSE C2;

    END;

    /

Maybe you are looking for