PL/SQL (as + Bind) errors

Hi all

I have problem with the underside of PL/SQL.

Can you please check and show me what are the mistakes.

SET ECHO OFF
SET SERVEROUTPUT ON
DECLARE
  CURSOR EMAIL_LIST
  IS
    SELECT UPPER(SUBSTR(EMAIL_ADDRESS, 1, INSTR(EMAIL_ADDRESS, '@') - 1)) EMAIL_ADDRESS
    FROM fnd_user
    WHERE END_DATE    <=sysdate
    AND EMAIL_ADDRESS IS NOT NULL
    AND email_address LIKE '%@%'
    ORDER BY EMAIL_ADDRESS;
  EMAIL_LIST_REC EMAIL_LIST%ROWTYPE;
  ALERT_NAME VARCHAR2(100);
  EMAIL      VARCHAR2(240);
BEGIN
  FOR EMAIL_LIST_REC IN EMAIL_LIST
  LOOP
    EMAIL := '''' || EMAIL_LIST_REC.EMAIL_ADDRESS || '%''';
    SELECT ALR.ALERT_NAME
    INTO ALERT_NAME
    FROM ALR_ALERTS ALR,
      ALR_ACTIONS AC
    WHERE ALR.ALERT_ID =AC.ALERT_ID
    AND UPPER ( AC.TO_RECIPIENTS ) LIKE EMAIL;
    DBMS_OUTPUT.PUT_LINE(ALERT_NAME || '    ' || EMAIL_LIST_REC.EMAIL_ADDRESS);
  END LOOP;
END;
/

Sorry just missed the alias. Check the above SELECTION I modified.

Tags: Database

Similar Questions

  • PL/SQL using bind variable to delete records

    Hello

    I'm currently implementing PL/SQL using bind variables to remove records from the "item_progress" table in the simple join query where I'm passing itemName, itemLoc and orderLoc in the delete query in pl/sql block.

    Please suggest, it should be easy for oracle experts...

    (a) I need first records in the item_progress table by using the join query and then update of status in the renew_item table.
    (b) it works fine if I use the simple removal with a condition that is ("DELETE from item_progress where itemname =: 1' using itemname1").

    (c) but it gives an error when I run it using delete with join:
    ---------------------------------------
    * Invalid relational operator ORA-00920:
    ORA-06512: at "SE", line 14 (it's the deletion with the join... "DELETE FROM item_progress WHERE item_id IN (SELECT ip.item_id'...)" ....'
    ORA-06512: at line 10
    Process exited.*
    ---------------------------------------

    create or replace PROCEDURE PUT (itemName IN VARCHAR2,
    itemLoc IN VARCHAR2,
    orderLoc IN VARCHAR2) is
    itemName1 varchar2 (30);
    itemLoc1 varchar2 (30);
    orderLoc1 varchar2 (30);
    BEGIN
    orderLoc1: = ' C: test/local /';
    itemLoc1: = ' / / L123/R;
    itemName1: = 'AAA ';

    immediate execution

    "DELETE FROM item_progress WHERE item_id IN (SELECT ip.item_id FROM ip, item_order io item_progress WHERE io.orderlocation: = 1 AND ip.order_id io.order_id UNION SELECT item_id FROM item_progress WHERE ITEMLOCATION =: = 2) AND itemname: = 3' using orderloc1, itemloc1, itemname1;"

    -"DELETE from item_progress where itemname =: 1' using itemname1; -IT WORKS FINE
    -Once the above query is updated to success, the status in another table
    -Renew_item update the Status value = "RENEWED" where ITEMNAME =: 1, ITEMLOCATION =: 2 using itemname1, itemloc1;

    commit;
    END OPERATIONS;

    user10828299 wrote:
    Please suggest, it should be easy for oracle experts...

    You have made a typo. bind variables are preceded by two points, while you put a colon in front of the equality operator that he listens to it in the PL/SQL assignment operator. Change:

    WHERE io.orderlocation : = 1

    TO

    IO.orderlocation WHERE =:1

    Change:

    WHERE ITEMLOCATION : = 2

    TO:

    WHERE ITEMLOCATION =:2

    Change

    AND itemname : = 3

    TO:

    AND itemname =:3

    SY.

  • SP2-0642: SQL * more internal error of State 2165

    Hello

    I was faced with the question with sqlplus suddenly in 11.2.0.3 throw version on solaris 10 OS, it was working fine until today. No changes made on this (11.2.0.3.Q3) oracle home, but new ORACLE HOME installed by Server DBA (shared server) with the Q4 patch.

    -bash-3, $2 sqlplus / as sysdba

    SP2-0642: SQL * more internal error state 2165, context 4294967295:0:0

    Impossible to continue

    As explained in metalink note: 396154.1, I set NLS_DATE_FORMAT, but it doesn't seem to work

    also, I've checked the timezone as explained in the blog file, but the file timezone.dat does not exist in 11.2.0.3 version and all the files in $ORACLE_HOME/oracore/zoneinfo/have permissions of reading to the dba group

    http://arjudba.blogspot.com/2010/07/non-Oracle-user-hits-SP2-0642-or-SP2.html

    -bash - $3.2 ls - ltr

    30942 total

    -rw - r - r - 1 oracle dba readme.txt 6068 7 June 2010

    -rw - r - r - 1 oracle dba 31525 June 7, 2010 timezdif.csv

    -rw - r - r - 1 oracle dba 351525 Aug 21, 2011 timezone_9.dat

    -rw - r - r - 1 oracle dba 302100 August 21, 2011 timezone_8.dat

    -rw - r - r - 1 oracle dba 286815 Aug 21, 2011 timezone_7.dat

    -rw - r - r - 1 oracle dba 286217 Aug 21, 2011 timezone_6.dat

    -rw - r - r - 1 oracle dba 286310 Aug 21, 2011 timezone_5.dat

    -rw - r - r - 1 oracle dba 286264 Aug 21, 2011 timezone_4.dat

    -rw - r - r - 1 oracle dba 286651 Aug 21, 2011 timezone_3.dat

    -rw - r - r - 1 oracle dba 274900 August 21, 2011 timezone_2.dat

    -rw - r - r - 1 oracle dba 344448 Aug 21, 2011 timezone_14.dat

    -rw - r - r - 1 oracle dba 344425 Aug 21, 2011 timezone_13.dat

    -rw - r - r - 1 oracle dba 345024 Aug 21, 2011 timezone_12.dat

    -rw - r - r - 1 oracle dba 345356 Aug 21, 2011 timezone_11.dat

    -rw - r - r - 1 oracle dba 345637 Aug 21, 2011 timezone_10.dat

    -rw - r - r - 1 oracle dba 274427 Aug 21, 2011 timezone_1.dat

    -rw - r - r - 1 oracle dba 801410 Aug 21, 2011 timezlrg_9.dat

    -rw - r - r - 1 oracle dba 616723 Aug 21, 2011 timezlrg_8.dat

    -rw - r - r - 1 oracle dba 601242 Aug 21, 2011 timezlrg_7.dat

    -rw - r - r - 1 oracle dba 586750 Aug 21, 2011 timezlrg_6.dat

    -rw - r - r - 1 oracle dba 587487 Aug 21, 2011 timezlrg_5.dat

    -rw - r - r - 1 oracle dba 531137 Aug 21, 2011 timezlrg_4.dat

    -rw - r - r - 1 oracle dba 527717 Aug 21, 2011 timezlrg_3.dat

    -rw - r - r - 1 oracle dba 507957 Aug 21, 2011 timezlrg_2.dat

    -rw - r - r - 1 oracle dba 791430 Aug 21, 2011 timezlrg_14.dat

    -rw - r - r - 1 oracle dba 782475 Aug 21, 2011 timezlrg_13.dat

    -rw - r - r - 1 oracle dba 785621 Aug 21, 2011 timezlrg_12.dat

    -rw - r - r - 1 oracle dba 787272 Aug 21, 2011 timezlrg_11.dat

    -rw - r - r - 1 oracle dba 792894 Aug 21, 2011 timezlrg_10.dat

    -rw - r - r - 1 oracle dba 493675 Aug 21, 2011 timezlrg_1.dat

    drwxr-xr-x 2 oracle dba 30 Sep 8 05:03 big

    drwxr-xr-x 2 oracle dba 30 Sep 8 05:03 little

    Please suggest alternatives to troubleshoot

    Thank you

    Sol.beach thanks for the reply, I'm able to correct the problem. In fact the PATH variable has put in .profile of export PATH = $PATH: $ORACLE_HOME/bin and the value is lower.

    -bash-3, $ 2 echo $PATH

    /Apps/Oracle/product/9.2.0.8.2009Q4/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/bin:.:/ bin:/opt/bin:usr/CSS/bin:/usr/ucb:/usr/local/bin:/apps/Oracle/product/11.2.0.3.2014Q3/bin

    I changed as export PATH = $ORACLE_HOME/bin: $PATH and now it works fine. It seems to be a problem with the old Oracle Home, also present in the PATH variable before the bin to the current address of Oracle Home Directory.

    -bash-3, $ 2 echo $PATH

    /Apps/Oracle/product/11.2.0.3.2014Q3/bin:/apps/Oracle/product/9.2.0.8.2009Q4/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/bin:.:/ bin: / opt/bin: css/usr/bin: / usr/ucb: / usr/local/bin

    Concerning

  • Caused by: java.sql.SQLRecoverableException: IO error: NL Exception has been generated

    Hello gurus

    We face below question in oracle11g r2 11.2.0.3.0 platform

    11 April 2014 14:40:45, 078 [TRACE] SVR-SCH0 [TRAN-FACTORY] ST KEY: [11] com.elitecore.core.commons.util.db.DatabaseInitializationException: java.sql.SQLRecoverableException: IO error: NL Exception has been generated

    at com.elitecore.core.commons.util.db.datasource.OracleConnectionDataSource.init(OracleConnectionDataSource.java:103)

    at com.elitecore.core.commons.util.db.DBConnectionManager.init(DBConnectionManager.java:264)

    at com.elitecore.core.commons.util.db.DBConnectionManager.init(DBConnectionManager.java:203)

    at com.elitecore.core.commons.util.db.DBConnectionManager.reInit(DBConnectionManager.java:173)

    at com.elitecore.core.commons.utilx.db.TransactionFactory.scan(TransactionFactory.java:93)

    to com.elitecore.core.commons.utilx.db.TransactionFactory$ 2.execute(TransactionFactory.java:165)

    to com.elitecore.core.serverx.BaseEliteServer$ BaseServerContext$ 2.run(BaseEliteServer.java:378)

    to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    to java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    to java.util.concurrent.ScheduledThreadPoolExecutor$ ScheduledFutureTask.access$ 301 (ScheduledThreadPoolExecutor.java:98)

    to java.util.concurrent.ScheduledThreadPoolExecutor$ ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:207)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:619)

    Caused by: java.sql.SQLRecoverableException: IO error: NL Exception has been generated

    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)

    to oracle.jdbc.driver.PhysicalConnection. (PhysicalConnection.java:536)

    to oracle.jdbc.driver.T4CConnection. (T4CConnection.java:228)

    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)

    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)

    at java.sql.DriverManager.getConnection(DriverManager.java:582)

    at java.sql.DriverManager.getConnection(DriverManager.java:185)

    at com.elitecore.core.commons.util.db.datasource.OracleConnectionDataSource.init(OracleConnectionDataSource.java:98)

    ... 14 more

    Caused by: oracle.net.ns.NetException: NL Exception has been generated

    at oracle.net.resolver.AddrResolution.resolveAddrTree(AddrResolution.java:614)

    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:411)

    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:678)

    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:238)

    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054)

    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)

    ... 21 more

    Please help us

    We use this Oracle RAC - URL JDBC

    JDBC: thin: @(DESCRIPTION = (ENABLE = BROKEN)

    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = x.x.x.1)

    (Port = 1521)) (ADDRESS = (PROTOCOL = TCP) (Host = x.x.x.2) (Port = 1521)))

    (FAILOVER = ON) (LOAD_BALANCE = on) (CONNECT_DATA = (SERVICE_NAME = orcl)

    (FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC)))

    Share your suggestions

    Thank you

    hitgon

    As suggested by link below, we added (SERVER = DEDICATED) already in place the URL and it works

    http://www.DBA-Oracle.com/bk_nl_exception_connecting_10g_rac_jdbc.htm

    JDBC: thin: @(DESCRIPTION = (ENABLE = BROKEN)

    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = dbnode1-vip)

    (Port = 1521)) ((ADDRESS = (PROTOCOL = TCP) (Host = dbnode2-vip)(Port = 1521)))

    (FAILOVER = ON) (LOAD_BALANCE = on) (CONNECT_DATA = (SERVICE_NAME = orcl)(SERVER = DEDICATED)

    (FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC)))

    anyone please share the same experience or suggestions.

  • SQL loader when error clause

    Hello

    I have this CTL file as below:

    DOWNLOAD THE DATA
    INFILE 'PRODUCT_*.csv '.
    ADD
    IN THE PRODUCT_CONFIG TABLE
    "WHEN <>(1:3) and (1:3) <>' 99" and <>' 00, «,» (1:4),
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    TRAILING NULLCOLS
    (
    PARTNUMBER NULLIF PARTNUMBER = BLANKS,
    NULLIF LABEL = BLANKS,
    NULLIF SEQUENCE SEQUENCE = BLANKS,
    NULLIF DISPLAY_FLAG DISPLAY_FLAG = BLANKS,
    BILL_PERIOD NULLIF BILL_PERIOD = BLANKS)

    However, I got this error when I run my file:

    SQL * Loader-350: error of syntax in line 6.
    Expecting "(", found "99".
    "WHEN <>(1:3) and (1:3) <>' 99" and <>' 00, «,» (1:4),


    How can I change my code to solve this error?

    Hello

    After your data, I created a test table and load the data successfully. See if this example helps you

    CREATE TABLE test (
       col1 VARCHAR2 (20),
       col2 VARCHAR2 (30),
       col3 NUMBER,
       col4 NUMBER
    );
    
    load data
    truncate into table test
    when ( col1 !='00') and (col1 !='99')
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (col1 char(20),
    col2 char(30),
    col3 integer external,
    col4 integer external
    );
    
    {code}
    
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • SQL Tuning Advisor error

    I wanted to use the SQL in the SQL worksheet setting feature. The DBA privilege me ADVISE system. But when I tried to use the feature, I get the following errors:
    An error was encountered performing the requested operation:
    
    ORA-06550: line 20, column 101:
    PLS-00103: Encountered the symbol "ANYDATA" when expecting one of the folllowing:
    
    .(),*%&=-+</> at in is mod remainder not rem
    <an exponenet (**) <> or != or ~= >= <> and or like LIKE2_
    LIKE4_LIKEC_between|| multiset member SUBMULTISET_
    The symbol "." was substituted for "ANYDATA" to continue.
    ORA-6550: line 20, column 140:
    PLS-00103: Encountered the symbol "ANYDATA" when expecting one of the folllowing:
    
    .(),*%&=-+</> at in is mod remainder not rem
    <an exponenet (**) <> or != or ~= >= <> and or like LIKE2_
    LIKE4_LIKEC_between|| mul
    ORA-6550:line 20, column 179:
    PLS-00103: Encountered the symbol "ANYDATA" when expecting one of the folllowing:
    
    .(),*%&=-+</> at in is mod remainder not rem
    <an exponenet (**) <> or != or ~= >= <> and or like LIKE2_
    LIKE4_LIKEC_between|| multiset
    06550,00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:
    Vendor code 6550
    Then I get this right after the other:
    An error was encountered performing the requested operation:
    
    
    ORA-13605: The specified task or boject staName12325 does not exist for the current user.
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.PRVT_ADVISOR", line 4841
    ORA-06512: at "SYS.DBMS_SQLTUNE", line 1093
    ORA-06512: at line 2
    13605.0000 - "The specified task or object %s does not exist for the current user."
    *Cause:   The user attempted to reference an advisor task or object
        using a anme that does not exist in the Advisor repository.
    *Action:  Adjust the name and retry the operation.
    Vendor code 13605
    Can someone help me please? I'm not a DBA, so I confused these error codes.

    Oracle SQL Developer 3.0.04 Build hand - 04.34
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0

    Robert

    Hi Robert,.

    SQL Setup seems stifling bind variables of your query clause-BETWEEN to_date function. Substitute a literal date string, and it seems to handle well. What is a solution?

    I ping the responsible developer and I hope he has time to investigate and to connect to a bug.

    Kind regards
    Gary Graham
    SQL development team

  • Table binding error ORA-01485 when I try to get in an associative array

    Hello

    I test to pass in an array associative odp.net

    So I created a simple testpackage:
    CREATE TABLE jwetesttab (CLIENTNR NUMBER (10) NOT NULL);

    CREATE OR REPLACE PACKAGE IN THE JWETEST_PK
    TYPE t_CLIENTNRS IS TABLE OF NUMBER INDEX OF PLS_INTEGER;
    PROCEDURE TestArrayIn (p_CLIENTNRS IN t_CLIENTNRS, p_NbOfRowsInserted OUT NUMBER);
    END JWETEST_PK;
    /

    CREATE OR REPLACE PACKAGE BODY JWETEST_PK AS
    PROCEDURE TestArrayIn (p_CLIENTNRS IN t_CLIENTNRS, p_NbOfRowsInserted ON the NUMBER)
    IS
    BEGIN
    FORALL i IN p_CLIENTNRS.first... p_CLIENTNRS. Last
    INSERT INTO jwetesttab (CLIENTNR) VALUES (p_CLIENTNRS (i));
    p_NbOfRowsInserted: = SQL % ROWCOUNT;
    COMMIT;
    END TestArrayIn;
    end JWETEST_PK;
    /

    Then I did as simple testapp as follows:
    Protected Int As Integer = 0
    Dim arrNums() As Integer = {1, 2, 3}
    Dim cmd As New OracleCommand
    Dim cnn as new OracleConnection (s_conn)
    Try
    With cmd
    . ArrayBindCount = 3
    . Connection = cnn
    . CommandText = "JWETEST_PK. TestArrayIn ".
    . CommandType = CommandType.StoredProcedure

    Var p_Clientnrs As OracleParameter = New OracleParameter
    With p_Clientnrs
    . ParameterName = "p_CLIENTNRS."
    . DbType = DbType.Int32
    . CollectionType = OracleCollectionType.PLSQLAssociativeArray
    . Value = arrNums
    . Size = 3
    Ends with
    . Parameters.Add (p_Clientnrs)
    . Parameters.Add (New OracleParameter ("p_NbOfRowsInserted", OracleDbType.Int32, ParameterDirection.Output))
    CNN. Open()
    cmd ExecuteNonQuery()).
    Int = CInt (.) Parameters ("p_NbOfRowsInserted"). Value)
    Ends with

    Catch ex As Exception
    MsgBox (ex.) Message)
    Finally
    If (cnn IsNot Nothing) = False Then
    CNN. Close()
    CNN. Dispose()
    End If
    End Try

    When I run my testapp, the lines are inseterd in the database, but it gives me an error: link table error: ORA-01485

    Liaison of the table and the associative arrays are two different functions and tend to confuse because they both have the word Array in them.

    The table binding is for "run this procedure and statement number X times, all the data here is at the front. ''
    Associative array is to "perform this procedure once, here is the table I want to that you pass in.

    Start by removing ArrayBindCount = 3and see if that helps

    If you still have problems, see the example of associative array on your hard disk to %OH%\ODP.NET\samples\2.x\AssocArray

    It will be useful,
    Greg

  • SQL CE sync error, internal error: the message of removal for the server was not created.

    Hi all

    The error displayed in the synchronization history in replication monitor window.

    What is the root cause of this error? And how to fix it or avoid it?

    Thank you.

    Hello SimonTneoh,

    A better forum would be for SQL replication:
    http://social.msdn.Microsoft.com/forums/en-us/SQLReplication/threads

    They will be better able to help with this error.

    Sincerely,

    Marilyn

  • SQL Server 2005 - Error Code: 0xD59 (cannot install KB955706)

    When automatic updates are trying to upgrade Microsoft SQL Server 2005 Express Edition Service Pack 3 (KB955706), installation failed. I keep getting this error 0xD59 Code. I find answers online, and nothing seems to work. Help, please!

    Remove the Microsoft SQL Server 2005 Express Edition Service Pack 3 in the Control Panel, reinstall it and install the update again.
    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • SQL Compact Edition Error 1935

    Hello-

    I try to install SQL Server Compact Edition, as it should be for another program I use. When I run the Setup, I get the following error:
    Error 1935.An error occurred during the installation of assembly ' Microsoft.VC90.ATL, version = "9.0.21022.8", publicKeyToken = "1fc8b3b9a1e18e3b", processorArchitecture = "amd64", type is "win32" '. " See Help and Support for more information. HRESULT: 0X8007370B.
    A little research turned up some basic solutions, none seemed to work. I tried UN / reinstall .net Framework and it still throws the same error. I tried boot minimum, such mode as recommended by one of the KB articles here, and still nothing, so I hope someone can point me in a new direction.
    Thank you!
    Edit: If one of the other forums I have asked this on has pointed out to me the tool can be found here: http://support.microsoft.com/kb/947821
    I downloaded, installed and smiled happily, as it appears to have fixed everything that was my problem.

    Hello

     
    We are pleased to know that the problem is solved. Thanks to come back and let us know, I'm sure that this information could help others. For additional support on Microsoft Windows, please ask your question in the Microsoft answers forum.
     
  • SQL Server Setup error

    When you try to install MS SQL 2014 Enterprise Edition, I get the following error:

    TITLE: Default the SQL Server installation program.
    ------------------------------

    Setup of SQL Server encountered the following error:

    C:\Windows\Installer\3232aa.msi.

    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&EvtType=0x7B2055F0%25400xB7EAF00B

    ------------------------------
    BUTTONS:

    Ok
    ------------------------------

    It could be a facility spent / fails & uninstallation of another edition of MS SQL. trying to uninstall/repair but not if course, I was completely successful (this is a test machine, not completely under my control, etc.). Latest facilities VS 2012/2013, also.

    Environment: Professional Win7, updated.

    Trying to find out some info about 3232aa.msi - found nothing.

    Some ideas, please...? Thanks in advance.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • SQL Loader in error after the modified table

    Hello

    "I had a column in the table that was initially defined as VARCHAR2 (250), I changed the table and made 1000, when the data is over 250 characters sql loader is in error"

    Field in the data file exceeds the maximum length. The table shows the field in VARCHAR2 (1000). Help, please.

    Thank you

    Gwenaël

    I changed the table again to make VARCHAR2 (4000) and still have the error. My data are about 350 characters. Help, please

    Change to the column sqlldr control file and explicitly set tank (4000).  The default data in sqlldr type is char (255).

  • Essbase Administration Service - create rules SQL file - connection error

    Hello

    I am creating the rules SQL files in Essbase Administration Console.

    When I press the OK/recover button in open SQL data source window I get this error:

    cannot connect to establish a connection with the SQL Server database see log for more information

    I tried the ODBC connections and BEAK .

    When I test the ODBC connection in Windows administrative tools > Data Sources (ODBC) > system DSN, it works correctly. but in open SQL error there.

    I tried two separate databases for my test.

    an Essbase server machine.

    a separate server.

    both give me the same error.

    SRD: 11g R2

    Essbase: 11.1.2

    ODBC1.jpgODBC2.jpgodbc3.jpg

    Do you have any suggestions?

    Create the DSN using DataDirect Oracle Wire Protocol 7.0 in (System DSN) ODBC administrators and test the connection of the Rules file. It will work.

    I think that u used Oracle in oracle11glcinet_home

  • POS for setup of SQL server agent error

    Dear community

    I try to install the WTP VMware for SQL Server agent, but the installation fails until he actually starts with the following error

    Microsoft.SqlServer.Smo.dll version does not match the installation of SQL Server most recent present on the system. Please update your DLL of SMO SQL before running this Setup again.

    Required version: 10.x.x.x

    The server has SQL Server Express 2008 R2 installed.

    I searched through the whole server and I found the following versions of this particular DLL

    C:\Program Files (x 86) \Microsoft SQL Server\110\SDK\Assemblies: v11.0.2100.60

    C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies: v11.0.2100.60

    C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies: v10.0.1600.22

    C:\Program Files (x 86) \Microsoft SQL Server\100\SDK\Assemblies: v1.050.2500.0

    As far as I know, only one version of SQL was installed and it came with my installation of Solarwinds Orion.

    Help is greatly appreciated.

    So I opened a case of pension on this issue.

    https://pubs.VMware.com/vSphere-60/topic/com.VMware.ICbase/PDF/VMware-data-protection-Administration-Guide-60.PDF

    Page 155, in the above document is on the backup and restore MS SQL Server using the SQL agent.

    There is a long list of supported SQL server versions, but guess what, SQL Express is not listed.

    Conclusion is therefore that only "full" MS SQL Servers are supported for backup. Guess I need to find another way to backup my SQL Express databases.

  • Word key missing in to_number conversion in the SQL statement select error

    ORA-00905: lack keyword for the below SQL statement error. It should be of to_number (m.EQUIP_SUB_CLASS_ID, '9999')
    between 3800 and the 3699 where Clause. Is that what I miss in the SQL below?

    SELECT  M.EQUIP_NO,M.EQUIP_CLASS_ID, M.EQUIP_DESCR,M.ORG_ID
      from  MAMIS.EQUIP M
     where M.EQUIP_NO in  (  SELECT  M.EQUIP_NO  from  MAMIS.EQUIP M, MAMIS.ORG O 
    where upper(M.ORG_ID) like upper(O.ORG_ID) 
    and length(replace(translate(M.EQUIP_SUB_CLASS_ID, '0123456789', '000000000'), '0')) is null
    and upper(M.fleet_status) like 'ACTIVE'  
    and upper(M.ORG_ID) not like 'NA'  
    and to_number(m.EQUIP_SUB_CLASS_ID , '9999') 
    between 3699 and 3800  )

    Hello

    I don't see obvious errors.

    Whenever you have a problem, please post a full test script that people can run to recreate the problem and test their ideas. Include CREATE TABLE and INSERT statements for all of the tables involved and the results desired from these data. Format your code so people can read and understand.
    See the FAQ forum {message identifier: = 9360002}

    I saw a couple of things you need to know about Oracle, but none of them would cause an error "Missing key word".

    There is no point in using the LIKE operator if you do use wildcards. For example

    upper (M.fleet_status)      like 'ACTIVE'  
    

    is slower than, but otherwise equivalent to

    upper (M.fleet_status)      = 'ACTIVE'  
    

    What are you trying to do here?

    length ( replace ( translate ( M.EQUIP_SUB_CLASS_ID
                                , '0123456789'
                        , '000000000'
                        )
               , '0'
               )
           )               is null
    

    Want to see if m.equip_sub_class_id consists only of numbers, from ' 0 'to 9'?
    If so, you can simply say

    TRANSLATE ( m.equip_sub_class_id
           , 'X0123456789'
           , 'X'
           )          IS NULL
    

    Depending on your front end, you may need a sem, i-colon (;) the end of your query.

Maybe you are looking for