Wht's wrong with this stream procedure.????

Am running this procedure and this is giving me an error..."wrong number or type of arguments to the call.."
declare
tab_array dbms_utility.uncl_array;
begin
tab_array(0) := 'scot.emp';
tab_array(1) := 'scot.dept';
dbms_streams_adm.maintain_tables(
table_name => tab_array,
source_directory_object => 'c:\oracle\kndl_src_strm_dir',
destination_directory_object => 'c:\oracle\kndl_dst_strm_dir',
source_database => 'twus',
destination_database => 'twuk',
perform_action => true,
caoture_name => 'Stream_Capture',
apply_name => 'Stream_Apply',
bidirectional      => false,
instantiation      => dbms_streams_adm.instantiation_table_network
end;
PLease help!!
Kapil

too manny spelling mistakes of arguments......
am sorry guys for inconvenience...
Kapil

Similar Messages

  • Is their anything wrong with this stored procedure?

    CREATE PROCEDURE [dbo].[DeleteAllUserReferences]
    @UserName NVARCHAR(256),
    @Id NVARCHAR(128),
    @Role NVARCHAR(256),
    @RowsAffected int OUTPUT
    AS
    BEGIN TRY
    /*Declare @RowsAffected int;*/
    EXEC aspnet_UsersInRoles_RemoveUsersFromRoles "mainwebsite",@UserName,@Role
    EXEC aspnet_Users_DeleteUser "mainwebsite",@UserName,15,@RowsAffected
    DELETE FROM [AspNetUserRoles] WHERE UserId = @Id
    DELETE FROM [AspNetUsers] WHERE UserName = @UserName
    COMMIT TRANSACTION
    END TRY
    BEGIN CATCH
    ROLLBACK TRANSACTION
    END CATCH
    RETURN 0
    I have a stored procedure above which executes fine when I execute it manually but does not when I execute it via asp.net. Only the first statement executes and the rest does not. Is their anything that might not be proper SQL in this code causing it to stop
    functioning properly?
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering
    - Yoda. Blog - http://www.computerprofessions.co.nr

    Since I don't know anything about the contents in that procedure I cannot comment on it. But if an error occurred, you would be taken the CATCH block and the error would be reraised.
    Erland Sommarskog, SQL Server MVP, [email protected]
    Here's the code you requested:
    CREATE PROCEDURE [dbo].aspnet_Users_DeleteUser
    @ApplicationName nvarchar(256),
    @UserName nvarchar(256),
    @TablesToDeleteFrom int,
    @NumTablesDeletedFrom int OUTPUT
    AS
    BEGIN
    DECLARE @UserId uniqueidentifier
    SELECT @UserId = NULL
    SELECT @NumTablesDeletedFrom = 0
    DECLARE @TranStarted bit
    SET @TranStarted = 0
    IF( @@TRANCOUNT = 0 )
    BEGIN
    BEGIN TRANSACTION
    SET @TranStarted = 1
    END
    ELSE
    SET @TranStarted = 0
    DECLARE @ErrorCode int
    DECLARE @RowCount int
    SET @ErrorCode = 0
    SET @RowCount = 0
    SELECT @UserId = u.UserId
    FROM dbo.aspnet_Users u, dbo.aspnet_Applications a
    WHERE u.LoweredUserName = LOWER(@UserName)
    AND u.ApplicationId = a.ApplicationId
    AND LOWER(@ApplicationName) = a.LoweredApplicationName
    IF (@UserId IS NULL)
    BEGIN
    GOTO Cleanup
    END
    -- Delete from Membership table if (@TablesToDeleteFrom & 1) is set
    IF ((@TablesToDeleteFrom & 1) <> 0 AND
    (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_MembershipUsers') AND (type = 'V'))))
    BEGIN
    DELETE FROM dbo.aspnet_Membership WHERE @UserId = UserId
    SELECT @ErrorCode = @@ERROR,
    @RowCount = @@ROWCOUNT
    IF( @ErrorCode <> 0 )
    GOTO Cleanup
    IF (@RowCount <> 0)
    SELECT @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END
    -- Delete from aspnet_UsersInRoles table if (@TablesToDeleteFrom & 2) is set
    IF ((@TablesToDeleteFrom & 2) <> 0 AND
    (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_UsersInRoles') AND (type = 'V'))) )
    BEGIN
    DELETE FROM dbo.aspnet_UsersInRoles WHERE @UserId = UserId
    SELECT @ErrorCode = @@ERROR,
    @RowCount = @@ROWCOUNT
    IF( @ErrorCode <> 0 )
    GOTO Cleanup
    IF (@RowCount <> 0)
    SELECT @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END
    -- Delete from aspnet_Profile table if (@TablesToDeleteFrom & 4) is set
    IF ((@TablesToDeleteFrom & 4) <> 0 AND
    (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_Profiles') AND (type = 'V'))) )
    BEGIN
    DELETE FROM dbo.aspnet_Profile WHERE @UserId = UserId
    SELECT @ErrorCode = @@ERROR,
    @RowCount = @@ROWCOUNT
    IF( @ErrorCode <> 0 )
    GOTO Cleanup
    IF (@RowCount <> 0)
    SELECT @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END
    -- Delete from aspnet_PersonalizationPerUser table if (@TablesToDeleteFrom & 8) is set
    IF ((@TablesToDeleteFrom & 8) <> 0 AND
    (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_WebPartState_User') AND (type = 'V'))) )
    BEGIN
    DELETE FROM dbo.aspnet_PersonalizationPerUser WHERE @UserId = UserId
    SELECT @ErrorCode = @@ERROR,
    @RowCount = @@ROWCOUNT
    IF( @ErrorCode <> 0 )
    GOTO Cleanup
    IF (@RowCount <> 0)
    SELECT @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END
    -- Delete from aspnet_Users table if (@TablesToDeleteFrom & 1,2,4 & 8) are all set
    IF ((@TablesToDeleteFrom & 1) <> 0 AND
    (@TablesToDeleteFrom & 2) <> 0 AND
    (@TablesToDeleteFrom & 4) <> 0 AND
    (@TablesToDeleteFrom & 8) <> 0 AND
    (EXISTS (SELECT UserId FROM dbo.aspnet_Users WHERE @UserId = UserId)))
    BEGIN
    DELETE FROM dbo.aspnet_Users WHERE @UserId = UserId
    SELECT @ErrorCode = @@ERROR,
    @RowCount = @@ROWCOUNT
    IF( @ErrorCode <> 0 )
    GOTO Cleanup
    IF (@RowCount <> 0)
    SELECT @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END
    IF( @TranStarted = 1 )
    BEGIN
    SET @TranStarted = 0
    COMMIT TRANSACTION
    END
    RETURN 0
    Cleanup:
    SET @NumTablesDeletedFrom = 0
    IF( @TranStarted = 1 )
    BEGIN
    SET @TranStarted = 0
    ROLLBACK TRANSACTION
    END
    RETURN @ErrorCode
    END
    Sorry, about the delay. If you think this helps then I will finally be able to finish my stored procedure and move on.
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to
    suffering - Yoda. Blog - http://www.computerprofessions.co.nr

  • Parallelport-whts wrong with this code?

    guys i need to know wht's wrong with this code.i sent the byte x=5 to the parallel port.and tried to read it back intoo another variable y..but the value of y is not returning.
    it showed the errors:
    1. printer port LPT1 :failed to write:IOException
    2.Exception
    java.io.IOException The device is not connected in writebyte
    i have no devices connected to the parallel port.
    my code is included:
    import javax.comm.*;
    import java.io.*;
    public class Parallelio {
    private static OutputStream outputStream;;
    private static ParallelPort parallelPort;
    private static CommPortIdentifier port;
    private static InputStream inputStream;
    // CONSTANT
    public static final String PARALLEL_PORT = "LPT1";
    public static void main(String[] args) {
    try {
         // get the parallel port connected to the printer
    port = CommPortIdentifier.getPortIdentifier(PARALLEL_PORT);
         // open the parallel port -- open(App name, timeout)
    parallelPort = (ParallelPort) port.open("CommTest", 50);
    outputStream = parallelPort.getOutputStream();
         byte x=5;     
         byte y;
         outputStream.write(x);
         inputStream=parallelPort.getInputStream();
         y=(byte)inputStream.read();
         System.out.println("The value read is:"+y);
         outputStream.flush();
         outputStream.close();     
    // inputStream.flush();
         inputStream.close();     
         } catch (NoSuchPortException nspe) {
    System.out.println("\nPrinter Port LPT1 not found : "
    + "NoSuchPortException.\nException:\n" + nspe + "\n");
    } catch (PortInUseException piue) {
    System.out.println("\nPrinter Port LPT1 is in use : "
    + "PortInUseException.\nException:\n" + piue + "\n");
         catch (IOException ioe) {
    System.out.println("\nPrinter Port LPT1 failed to write : "
    + "IOException.\nException:\n" + ioe + "\n");
    } catch (Exception e) {
    System.out
    .println("\nFailed to open Printer Port LPT1 with exeception : "
    + e + "\n");
    } finally {
    if (port != null && port.isCurrentlyOwned()) {
    parallelPort.close();
    System.out.println("Closed all resources.\n");
    regards
    arun
    Message was edited by:
    arun_koshy
    Message was edited by:
    arun_koshy
    Message was edited by:
    arun_koshy

    Hi
    I also need jwrapi package, could someone send me the binaries or the password?
    My email is
    [email protected]
    thank you.

  • DataOutputStream - whts wrong with this code!?!

    Hi
    I want to write a string to a file already existing on my phone.
    I used the following code but it throws a classNotFound and ConnectionNotFoundException
    I tried the follwoing 2 ways (I think theyr pretty much the same thing):
    1.
    String uri = "c:/documents/flash/my.txt";
    DataOutputSream dos = Connector.openDataOutputStream(uri);
    dos.writeUTF("hi");
    2.
    String uri = "c:/documents/flash/my.txt";
    OutputConnection conn = (OutputConnection)Connector.open(uri",Connector.WRITE);
    DataOutputStream dos = conn.openDataOutputStream();
    dos.writeUTF("hi");
    please can u tell me whts wrong with this or is the method itself that is wrong. how can I solve this... my basic purpose is to write a text to an existing file using a j2me application
    thanx
    Forum M Parmar

    Probably, there is no OutputConnection avalaible... writing files is not standard in j2me!

  • How to write to csv file - Whats wrong with this???

    Hi ALL,
    I created a view that does all sorts of calculations, now I need to write the output in csv file. How do I do this thru a procedure? Sorry I've never had to create a csv file before and this is my first time.
    Thanks!
    Edited by: user5737516 on Nov 18, 2009 9:47 AM

    What is wrong with this?? Am I supposed to do something else before I could run this?
    CREATE OR REPLACE DIRECTORY PAYROLL as 'c:\';
    Directory created.
    grant read, write on directory PAYROLL to my_user;
    Grant succeeded.
    CREATE OR REPLACE PROCEDURE baninst1.PAY_CSV(p_year NUMBER, p_qtr NUMBER) AS
      CURSOR c_data IS
        SELECT pay_period,
               pay_group,
               p_qtr,
               check_date,
               SUM(soc_sec_gross) as SOC_SEC_GROSS,
               SUM(medicare_gross) as MEDICARE_GROSS,
               SUM(TOTAL_DEDUCTIONS) as Total_Deductions,
               SUM(NET_PAY) as Net_Pay
        FROM   baninst1.pzvdedn
        WHERE  pay_year = p_year
        AND        p_qtr = p_qtr
        GROUP BY pay_period, pay_group, check_date, pay_qtr
        ORDER BY pay_period, pay_group, check_date, pay_qtr;
      v_file  UTL_FILE.FILE_TYPE;
    BEGIN
      v_file := UTL_FILE.FOPEN('PAYROLL',
                               'pay_csv.csv',
                               'w',
                               max_linesize => 32767);
      FOR cur_rec IN c_data LOOP
        UTL_FILE.PUT_LINE(v_file,
                          cur_rec.pay_period    || ',' ||
                          cur_rec.pay_group    || ',' ||
                          cur_rec.check_date     || ',' ||
                          cur_rec.soc_sec_gross      || ',' ||
                          cur_rec.medicare_gross || ',' ||
                          cur_rec.total_deductions    || ',' ||
                          cur_rec.net_pay);
      END LOOP;
      UTL_FILE.FCLOSE(v_file);
    EXCEPTION
      WHEN OTHERS THEN
        UTL_FILE.FCLOSE(v_file);
    END;
    Procedure created.
    SQL> exec baninst1.PAY_CSV(2009,1);
    BEGIN baninst1.PAY_CSV(2009,1); END;
    ERROR at line 1:
    ORA-20003: File could not be opened or operated on as requested.
    ORA-06512: at "BANINST1.PAY_CSV", line 45
    ORA-06512: at line 1Edited by: user5737516 on Nov 18, 2009 9:16 AM
    Edited by: user5737516 on Nov 18, 2009 9:18 AM
    Edited by: user5737516 on Nov 18, 2009 9:20 AM
    Edited by: user5737516 on Nov 18, 2009 9:35 AM

  • What is the problem with this Stored Procedure

    Hi ,
    What is the problem with this Stored Procedure ?Why is it giving errors ??
    CREATE or replace  PROCEDURE getEmpName
    *(EMP_FIRST OUT VARCHAR2(255))*
    BEGIN
    SELECT ename INTO EMP_FIRST
    FROM Emp
    WHERE EMPNO = 7369;
    END ;
    */*

    You don't specify precision in procedure arguments.
    (EMP_FIRST OUT VARCHAR2(255))should be
    (EMP_FIRST OUT VARCHAR2)Since you asked what's wrong with it, I could add that it needs formatting and the inconsistent use of upper and lower case is not helping readability.

  • What is wrong with this code? on(release) gotoAndPlay("2")'{'

    Please could someone tell me what is wrong with this code - on(release)
    gotoAndPlay("2")'{'
    this is the error that comes up and i have tried changing it but it is not working
    **Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 2: '{' expected
         gotoAndPlay("2")'{'
    Total ActionScript Errors: 1 Reported Errors: 1
    Thanks

    If you have a frame labelled "2" then it should be:
    on (release) {
        this._parent.gotoAndPlay("2");
    or other wise just the following to go to frame 2:
    on (release) {
         this._parent.gotoAndPlay(2);
    You just had a missing curly bracket...

  • It says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    I just got my new iPad Mini2, and when I choose "sign in with your apple ID", it says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • I can't figure out what's wrong with this code

    First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom:
    One two buckle your shoe
    Three four shut the door
    Five six pick up sticks
    Seven eight lay them straight
    Nine ten this is the end.
    The error message i got was an illegal start of expression. I can't figure out why it is giving me this error because i have if (n = 1) || (n = 2) statements. My code is:
    public class PoemSeventeen
    public static void main(String[] args)
    EasyReader console = new EasyReader();
    System.out.println("Enter a number for the poem (0 to quit): ");
    int n = console.readInt();
    if (n = 1) || (n = 2)
    System.out.println("One, two, buckle your shoe");
    else if (n = 3) || (n = 4)
    System.out.println("Three, four, shut the door");
    else if (n = 5) || (n = 6)
    System.out.println("Five, six, pick up sticks");
    else if (n = 7) || (n = 8)
    System.out.println("Seven, eight, lay them straight");
    else if (n = 9) || (n = 10)
    System.out.println("Nine, ten, this is the end");
    else if (n = 0)
    System.out.println("You may exit now");
    else
    System.out.println("Put in a number between 0 and 10");
    I messed around with a few other thing because i had some weird errors before but now i have narrowed it down to just this 1 error.
    The EasyReader class code:
    // package com.skylit.io;
    import java.io.*;
    * @author Gary Litvin
    * @version 1.2, 5/30/02
    * Written as part of
    * <i>Java Methods: An Introduction to Object-Oriented Programming</i>
    * (Skylight Publishing 2001, ISBN 0-9654853-7-4)
    * and
    * <i>Java Methods AB: Data Structures</i>
    * (Skylight Publishing 2003, ISBN 0-9654853-1-5)
    * EasyReader provides simple methods for reading the console and
    * for opening and reading text files. All exceptions are handled
    * inside the class and are hidden from the user.
    * <xmp>
    * Example:
    * =======
    * EasyReader console = new EasyReader();
    * System.out.print("Enter input file name: ");
    * String fileName = console.readLine();
    * EasyReader inFile = new EasyReader(fileName);
    * if (inFile.bad())
    * System.err.println("Can't open " + fileName);
    * System.exit(1);
    * String firstLine = inFile.readLine();
    * if (!inFile.eof()) // or: if (firstLine != null)
    * System.out.println("The first line is : " + firstLine);
    * System.out.print("Enter the maximum number of integers to read: ");
    * int maxCount = console.readInt();
    * int k, count = 0;
    * while (count < maxCount && !inFile.eof())
    * k = inFile.readInt();
    * if (!inFile.eof())
    * // process or store this number
    * count++;
    * inFile.close(); // optional
    * System.out.println(count + " numbers read");
    * </xmp>
    public class EasyReader
    protected String myFileName;
    protected BufferedReader myInFile;
    protected int myErrorFlags = 0;
    protected static final int OPENERROR = 0x0001;
    protected static final int CLOSEERROR = 0x0002;
    protected static final int READERROR = 0x0004;
    protected static final int EOF = 0x0100;
    * Constructor. Prepares console (System.in) for reading
    public EasyReader()
    myFileName = null;
    myErrorFlags = 0;
    myInFile = new BufferedReader(
    new InputStreamReader(System.in), 128);
    * Constructor. opens a file for reading
    * @param fileName the name or pathname of the file
    public EasyReader(String fileName)
    myFileName = fileName;
    myErrorFlags = 0;
    try
    myInFile = new BufferedReader(new FileReader(fileName), 1024);
    catch (FileNotFoundException e)
    myErrorFlags |= OPENERROR;
    myFileName = null;
    * Closes the file
    public void close()
    if (myFileName == null)
    return;
    try
    myInFile.close();
    catch (IOException e)
    System.err.println("Error closing " + myFileName + "\n");
    myErrorFlags |= CLOSEERROR;
    * Checks the status of the file
    * @return true if en error occurred opening or reading the file,
    * false otherwise
    public boolean bad()
    return myErrorFlags != 0;
    * Checks the EOF status of the file
    * @return true if EOF was encountered in the previous read
    * operation, false otherwise
    public boolean eof()
    return (myErrorFlags & EOF) != 0;
    private boolean ready() throws IOException
    return myFileName == null || myInFile.ready();
    * Reads the next character from a file (any character including
    * a space or a newline character).
    * @return character read or <code>null</code> character
    * (Unicode 0) if trying to read beyond the EOF
    public char readChar()
    char ch = '\u0000';
    try
    if (ready())
    ch = (char)myInFile.read();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (ch == '\u0000')
    myErrorFlags |= EOF;
    return ch;
    * Reads from the current position in the file up to and including
    * the next newline character. The newline character is thrown away
    * @return the read string (excluding the newline character) or
    * null if trying to read beyond the EOF
    public String readLine()
    String s = null;
    try
    s = myInFile.readLine();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (s == null)
    myErrorFlags |= EOF;
    return s;
    * Skips whitespace and reads the next word (a string of consecutive
    * non-whitespace characters (up to but excluding the next space,
    * newline, etc.)
    * @return the read string or null if trying to read beyond the EOF
    public String readWord()
    StringBuffer buffer = new StringBuffer(128);
    char ch = ' ';
    int count = 0;
    String s = null;
    try
    while (ready() && Character.isWhitespace(ch))
    ch = (char)myInFile.read();
    while (ready() && !Character.isWhitespace(ch))
    count++;
    buffer.append(ch);
    myInFile.mark(1);
    ch = (char)myInFile.read();
    if (count > 0)
    myInFile.reset();
    s = buffer.toString();
    else
    myErrorFlags |= EOF;
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    return s;
    * Reads the next integer (without validating its format)
    * @return the integer read or 0 if trying to read beyond the EOF
    public int readInt()
    String s = readWord();
    if (s != null)
    return Integer.parseInt(s);
    else
    return 0;
    * Reads the next double (without validating its format)
    * @return the number read or 0 if trying to read beyond the EOF
    public double readDouble()
    String s = readWord();
    if (s != null)
    return Double.parseDouble(s);
    // in Java 1, use: return Double.valueOf(s).doubleValue();
    else
    return 0.0;
    Can anybody please tell me what's wrong with this code? Thanks

    String[] message = {
        "One, two, buckle your shoe",
        "One, two, buckle your shoe",
        "Three, four, shut the door",
        "Three, four, shut the door",
        "Five, six, pick up sticks",
        "Five, six, pick up sticks",
        "Seven, eight, lay them straight",
        "Seven, eight, lay them straight",
        "Nine, ten, this is the end",
        "Nine, ten, this is the end"
    if(n>0)
        System.out.println(message[n]);
    else
        System.exit(0);

  • What's wrong with this function

    What's wrong with this Function(PL/SQL) in this formaula column definition in Reports 6i
    function currdateFormula return Date is
    curr_date date;
    begin
    select to_char(sysdate, 'DD-MM-YYYY') into curr_date from dual;
    return(curr_date);
    end;
    I get the following error in compiling
    REP-1401. 'currdateformula'.Fatal PL/SQL error occured. ORA-01843 not a valid month.
    The SQL select to_char(sysdate, 'DD-MM-YYYY') from dual; worked well in SQL Plus prompt.
    I got a clean compile when i use just sysdate in the function (see below).
    function currdateFormula return Date is
    curr_date date;
    begin
    select sysdate into curr_date from dual;
    return(curr_date);
    end;
    Appreciate your help
    Raja Lakshmi

    hello,
    what you are trying to do :
    fetch the current date and return it as the result of the formula-column.
    what you are actually doing :
    fetch the current date, convert it to text, assign this text to a date-variable which causes an implicit type-conversion.
    in your case you create a date-string with the format dd-mm-yyyy. the implicit conversion then tries to convert this string back to date using the NLS settings of your session. depending on your NLS_LANG and NLS_DATE_FORMAT this might work, if your session-date-format is dd-mm-yyyy which obviously it is NOT as you get the error.
    what you should do :
    select sysdate into curr_date from dual;
    this fetches the sysdate and stores it in your date-variable. there is no type conversion needed what so ever.
    regards,
    the oracle reports team

  • What's wrong with this SQL?

    what's wrong with this SQL?
    Posted: Jan 16, 2007 9:35 AM Reply
    Hi, everyone:
    when I insert into table, i use the fellowing SQL:
    INSERT INTO xhealthcall_script_data
    (XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
    FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
    SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    I always got an error like;
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
    ERROR at line 3:
    ORA-00936: missing expression
    but I can't find anything wrong, who can tell me why?
    thank you so much in advance
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
    For starters, an insert select does not have a values clause.
    HTH -- Mark D Powell --
    PP
    Posts: 41
    From: q
    Registered: 8/10/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
    Even I see "missing VALUES" as the only error
    Eric H
    Posts: 2,822
    Registered: 10/15/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
    ...and why are you doing a UNION on the exact same two queries?
    (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
    Hi,
    thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
    ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
    so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
    I wonder if anyone can help me about this.
    thank you very much
    jerry
    yingkuan
    Posts: 1,801
    From: San Jose, CA
    Registered: 10/8/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
    Dup Post
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
    Hi,
    acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
    I think he use union for eliminating duplications of rows, I just guess.
    thank you
    jerry
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
    Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
    1 insert into marktest
    2 (fld1, fld2, fld3, fld4, fld5)
    3* select * from marktest
    UT1 > /
    16 rows created.
    HTH -- Mark D Powell --
    Jagan
    Posts: 41
    From: Hyderabad
    Registered: 7/21/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
    try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
    INSERT INTO xhealthcall_script_data
    (xhc_call_ended, xhc_switch_port, xhc_script_id,
    xhc_fax_specified)
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE'
    UNION
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE';
    Regards
    Jagan
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
    Hi, Jagan:
    thank you very much for your answer.
    but when I execute it, I still can get error like:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    so wired, do you have any ideas?
    thank you very much

    And this one,
    Aother question about SQL?
    I thought I already told him to deal with
    ORA-03113: end-of-file on communication channel
    problem first.
    There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert)

  • I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt. I would rather have my 2008 Dell at this point. what is wrong with this thing

    I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt or damaged. I would rather have my 2008 Dell at this point. what is wrong with this thing

    Perhaps the PDF files are corrupted.
    Hit the command key and spacebar, a blue Spotlight in the upper right hand corner appears, now type Preview and press return on the Preview program.
    Now you can try opening the PDF's from the file menu and see what's going on.
    If they are corrupted, perhaps they are trojans from your Windows PC or gotten from a bad location online.
    Download the free ClamXav and run a scan on the possibly infected folder.

  • What's wrong with my store procedure?

    HI, I can't figure out what's wrong with my stored procedure. I believe i have a "commit;" where it's not supposed to be. What i really want to acheive is save the record once it finds those keywords. Maybe my syntax is all wrong.
    I am getting the following error msg. PLS-00103
    create or replace
    procedure sp_diag is
    DECLARE
    v_setting_key NUMBER(18);
    v_parent NUMBER(22);
    v_name VARCHAR2(100);
    v_class_key NUMBER(22);
    CURSOR c1 IS
    select setting_key, setting_class_key,name
    from cms2wire.setting_list;
    CURSOR c2 IS
    select setting_class_key, parent_class_key,name
    from cms2wire.setting_class
    where setting_class_key = v_parent;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 into v_setting_key, v_parent, v_name;
    EXIT when c1%NOTFOUND;
    WHILE v_parent != null
    LOOP
    OPEN c2;
    FETCH c2 into v_class_key, v_parent, v_name;
    CLOSE c2;
    IF v_name='Diag.'or v_name='Settings.' THEN
    COMMIT;
    END IF;
    END LOOP;
    END LOOP;
    CLOSE c1;
    END;
    -------------------------------------------------------------------------------------

    Now, the way I see it, if you want to save the information, then you need to put it some place, so your slow-by-slow stored procedure becomes something like
    INSERT INTO some_table (column list)
      SELECT a.setting_key,
             a.setting_class_key,
             a.name
             b.setting_class_key,
             b.parent_class_key,
             b.name
        FROM cms2wire.setting_list  a,
             cms2wire.setting_class b
       WHERE a.setting_class_key = a.setting_class_key
         AND b.name in ('Diag.', 'Settings.');
    COMMIT;does it not?

  • What's wrong with this content type definition?

    Could someone tell me what's wrong with this content type definition? When I click "New Folder" in a custom list, it should bring two fields 1) Name 2) Custom Order. However in my case when I click new folder, I see 1) Member (which is totally
    weird) 2) custom order. Where is it getting that Member field from?
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Folder (0x0120) -->
    <ContentType ID="0x012000c0692689cafc4191b6283f72f2369cff"
    Name="Folder_OrderColumn"
    Group="Custom"
    Description="Folder with order column"
    Inherits="TRUE"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{35788ED2-8569-48DC-B6DE-BA72A4F87B7A}" Name="Custom_x0020_Order" DisplayName="Custom Order" />
    </FieldRefs>
    </ContentType>
    </Elements>

    Hi,
    According to your post, my understanding is that you had an issue about the custom content type with custom column.
    I don’t think there is any issue in the content type definition, and it also worked well in my environment.
    Did you have the Member field in the project?
    I recommend you create a simple project only with one custom Order column and one custom Folder_OrderColumn, then you can add more fields one by one.
    By doing this, it will be easier to find out the root cause of this error.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • What's wrong with this Forum? Why does Adobe take so long to reply to posts?!

    What's wrong with this Forum? Why does Adobe take so long to reply to posts?!
    This is actually "specific" to this Photoshop Forum.
    I typically get responses back from other Adobe forum promptly.
    Chime in.

    The Adobe engineering folks DO duck in here from time to time - and that's a BLESSING!  Please name any other big company where you get to interact with the engineers AT ALL.  I can't.  But I suspect the engineers actually have a lot oof real work to do, and their time here is necessarily limited.
    Your comments are more along the line of "I pay a huge amount, for that I expect better support".  These are very valid comments.  But reality is different from what we may expect, and this forum is not the place to expect Adobe support participation AT ALL.  In fact, the technical support people at Adobe often direct users to come here (something I've always found amusing).
    At the higher level, Adobe may simply not be spending enough on support for literally millions of users.  Is is greed or smart business to try to minimize support cost?  That's up for individuals to decide.
    I suggest you write a snail-mail letter to the Adobe president if you're not getting the support you need.
    -Noel

Maybe you are looking for

  • Create key mapping using import manager for lookup table FROM EXCEL file

    hello, i would like create key mapping while importing the values via excel file. the source file containing the key, but how do i map it to the lookup table? the properties of the table has enable the creation of mapping key. but during the mapping

  • Transfer back to tape question / How to do a portion

    How do I transfer just a portion of my entire movie in FCE back to tape. I have about an hour in one sequence and I only want to transfer the last half back to tape... I know how to do the basic print to video but how do I designate a specific segmen

  • No mapping

    Hi all, My question is quite simple (I think). XI have to receive a message and send it (exactly the same message) to other channel. Do I need one or two messages for request and response? Regards, Message was edited by:         Ismael Perez

  • How to find and clean out movie files?

    Keep getting the "startup disk almost full" memo. I've had this problem for a few months and I've done just about everything for temporary fixes. I've gone through downloaded files, iPhoto and iTunes and browser history- cleaned out huge chunks of ea

  • OS X driver for Airlink AWLL6070 wireless USB adapter?

    Is there any one know the Driver for Lion and SL for Airlink wireless AWLL6070 USB adapter.  Airlink web site does not show any Mac driver support.  I use this adapter in window and it works fine. I want to use it on Mac too.