Issue with sqlplus_exec_template.sql

Hi all,
I am trying to run a process flow using sqlplus_exec_template.sql, through a .bat file. I am getting the following errors:
PLS-00201: identifier 'WB_RT_API_EXEC.RESULT_FAILURE' must be declared
PLS-00201: identifier 'WB_RT_API_EXEC.RUN_TASK' must be declared
I am using SQL*Plus: Release 10.2.0.3.0 and Oracle Database 10g 10.2.0.4.0
I searched in other threads, but I could not find an answer.
Thanks!
Sebastian

Hi Oleg,
Thanks for the reply.
If I got the idea of the template, would be required to type in the script the register Warehouse builder user?
This current script contains the following code (and the execution of it gets the above errors):
@echo off
SQLPLUS USERNAME/PASSWORD@SERVER @sqlplus_exec_template.sql etc.etc
Or am I missing something? Thanks for your help!
Sebastian

Similar Messages

  • Issue with  pl/sql client

    Hi All,
    I am getting issue with pl/sql client saying readonly access to DMPROD(database).
    could you help me out..what might be causing this problem or how to overcome it?
    Thanks a lot.

    tvenkatesh07 wrote:
    Hi All,
    I am getting issue with pl/sql client saying readonly access to DMPROD(database).
    could you help me out..what might be causing this problem or how to overcome it?Well, it could be possible that your user, with whom you are trying to connect, is having only read-only access to the db? Did you try to change the user?
    Aman....

  • Credentials issue with MS SQL Express 2014

    Hello,
    I have kind of simple issue but I failed to resolve it. Here's the issue:
    I have SQL Server Express 2014 installed on my PC. I have to use SQL Server authentication. As 'sa' I created login and user e.g. user1. Then as user1 I created DB e.g. db1 and a few tables. Now I could login into db1 as user1 using SQL Server authentication.
    This db1 will be used by application e.g. app1. This app1 has configuration file that has all credentials and other connection string things. Well when I start that application it throws error "Can't connect to database". Then I look into log and
    see this: Error: 18456, Severity: 14, State: 8. Login failed for user 'user1'. Reason: Password did not match that for the login provided .  Then I could disable credential check in configuration file of app1 and then I don't have problem to start app1.
    Then I tried to created ODBC connection and use the same credentials and I succeed to connect. Could some give the idea what could be wrong and I can't connect to db1 from my app1? Thanks

    Reset the password of the login, i have already this problem.
    Not forget the connection string syntaxe, do not make the space after and before (=) example :
    Server=myServerAddress;Database=myDataBase;User
    Id=myUsername;
    Password=myPassword;
    Thanks for suggestion ... but could you please tell me why  to reset login password ( I could use this password successfully when login from Studio i.e. it's correct.
    Could you please give me sqlcmd example how to connect to my db1 using connection string. That way I should be able to check which users are capable to login.
    N.B. I am planning to play with Trusted Connection because Shanky_621 suggested that value 'false' (like in my case means Windows Authentication). In my case user1 is not Windows user .. it's SQL Authentication user.
    Thanks

  • How to specify the Process Flow Module with SQLPLUS_EXEC_TEMPLATE.SQL ?

    Hi, we have a couple of process flow modules that have PF Packages and Process Flows with the same name.
    E.g
    PFMOD1 (Module)
    FILELOAD (Package)
    PF1 (Pf)
    PFMOD2 (Module)
    FILELOAD (Package)
    PF1 (Pf)
    Normally we can specify "FILELOAD/PF1" as a paramater to the procedure SQLPLUS_EXEC_TEMPLATE.SQL in order to initiate the running of an OWB process flow but how can the system distinguish between modules ?
    Anyone done this ?
    Thanks
    Paul

    If you deployed the packages to the same location then the second deployment replaced the result of the first one (actually a new version of the process flow was created). You can execute only the latest version...
    Regards,
    Robert

  • Firewall issue with centralized SQL server - port 52384

    Hi, 
    I have dedicated, centralized MS SQL 2012 server for our internal infrastructure with few instances. There is dedicated named instance SC for SC Family Products running on TCP port 1435. Also Server Browser running on UDP 1434 is enabled. I'm trying to install
    SCOM 2012 R2. I got to the step Configure the Operational Database and here, I encountered a problem. I try to connect to my SQL server and put into
    Server name and instance name SQL\SC and into SQL Server port 1434 or 1435, it doesn't connect. If I turn off firewall on SQL server, it connects without problems. On SQL server, I already have allowed incoming communication on ports UDP 1434
    and also TCP 1433-1436. Than, I found out, that I need to allow in TCP 135 so I did it. It didn't work. Than I allowed TCP 49154-49157 for reporting services - it still didn't work. Last thing I allowed (using Microsoft Network Monitor) was TCP port 52384
    and suddenly, it worked . 
    I know what UDP 1434 and TCP 1433-1436 are for. Also, I understand why I have to open 135 and 49154-49157. But I am pretty confused by the port 52384 - what is it for ? Why it isn't mentioned in documentation ? I am pounding with this problem for a while,
    and also, I found out, that my SC VMM is not working, if I do not allow all of these ports - so, probably not only used by SCOM ? 
    Can anyone explain what's that port for ? Or why it's not enough to open 1434, 1433-1436, 135 and 49154-49157 ?
    Thanks
    Tomas

    Hi,
    I didn't install SCOM yet. I am stuck at installation, till I figure out why port 52384 needs to be opened.
    1. My SQL Server Configuration Manager is set like this:
    Protocols for SC - TCP/IP Enabled
    IP2
    Active : Yes
    Enabled : Yes
    IP Address : ipv4 ip address of server
    TCP Dynamic Ports :   (blank)
    TCP Port : 1435
    So, that should be ok, right?
    2. If I turn off firewall on SQL, everything connects ok - so based on that, I suppose that SCOM server firewall is configured ok . It's issue on SQL.
    On SQL server, I have these inbound rules:
    COM+ Network Access (DCOM-In) - TCP 135 enabled
    HTTP/HTTPS - TCP 80,443 enabled
    SCOM Reporting - TCP 49154-49157 enabled
    SQL UDP ports - UDP 1433-1437 enabled
    SQL TCP ports - TCP 1433-1435 enabled
    SCOM 52384 - TCP 52384 enabled <- this is the port I don't understand, why it should be opened
    If I disable any of these rules, my connection will not pass. I figured out those ports using Microsoft Network Monitor on SQL server.
    3. Those databases do not exist yet. I am stuck at 3th step of Operations Manager Setup - at Configure the operational database.
    There are fields Server name and instance name, SQL Server port, Database name, Database size, Data file folder, Log file folder
    . First two are writable and the rest is greyed out. If I don't turn off firewall and I don't enable all rules from point 2 on SQL server and than put in the SQL server name with instance (SQL\SC) and port 1434 (or 1435) it gives
    me red cross, and rest of the page stays greyed out - so, it's unable to connect. If I turn off firewall, or enable all the rules in previous point (2) I am able to change name of the database, database size, data/log file folder. But if I disable any
    of those ports, it stays greyed out - I am concerned about port 52384, why it should be opened? What is it for? Why it isn't mentioned in any documentation? Or am I doing something wrong?
    Thanks
    Tomas 

  • Issue with Microsoft SQL Server, according to SAP (LMB)

    We are upgrading our SAP Solution Manager and ran into a problem. SAP has passed it on to Microsoft because it appears to be an issue with our MS SQL data base.   So we get a question back from Microsoft that says - - 
    First, you are running SAPJVM1.4 and for a 1.4 environment the 1.2
    version of the Microsoft SQL Server driver must be used.
    So how can I find the version number for our Microsoft SQL Server driver ??   Thanks, Jim Wells  

    That is a difficult topic.  Some articles:
    http://blogs.msdn.com/b/sqlcat/archive/2010/10/26/how-to-tell-which-version-of-sql-server-data-access-driver-is-used-by-an-application-client.aspx
    http://technet.microsoft.com/en-us/library/ms181099.aspx
    http://www.mssqltips.com/sqlservertip/2198/determine-which-version-of-sql-server-data-access-driver-is-used-by-an-application/
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Having issues with getting SQL Server Express to start services and run.

    Good afternoon everyone,
    I have been working on a 2012 R2 server getting ready to move databases to new hardware.  I had SQL Server Express 2008 R2 running on this server with no issues.  I was handed another software package that ran SQL Express 2012 and had to for compatibility
    reasons.  I have had multiple versions run on Server 2012 before with no issues.  This time, not so lucky.  When the installer from the updated package put on SQL Express 2012 it completed with errors ( error log posted at the end of post) and
    would not allow me to run software.  I then tried the db that I had installed on 2008 R2 and it also gave the  same error as the 2012 version.  IN basic terms the required services attempted to start and shut back down again.  I have received
    Error 1068 about database handles and error %%945.   I know this db has plenty of space and the permissions were added for the Admin account to access both db's.  I then uninstalled both versions and tried again, with the same errors listed when
    I tried to start the services.     I am thinking that a clean install would fix the issue however I am not certain what files/folders/reg entries need to be deleted or modified.  I have researched all the errors I can find, however I am very
    new with SQL anything so I know I am missing something.   I also do not have an "E:" drive on this server (not sure why it is going there). Input would be very welcome as I am not certain where to go from here. 
    Thanks,
    Matt
    Error Log follows, server and domain names have been blacked out with ****.
    2015-04-15 11:57:55.16 Server      Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) 
    Dec 28 2012 20:23:12 
    Copyright (c) Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    2015-04-15 11:57:55.16 Server      (c) Microsoft Corporation.
    2015-04-15 11:57:55.16 Server      All rights reserved.
    2015-04-15 11:57:55.16 Server      Server process ID is 4104.
    2015-04-15 11:57:55.16 Server      System Manufacturer: 'HP', System Model: 'ProLiant ML350p Gen8'.
    2015-04-15 11:57:55.16 Server      Authentication mode is WINDOWS-ONLY.
    2015-04-15 11:57:55.16 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Log\ERRORLOG'.
    2015-04-15 11:57:55.17 Server      The service account is 'NT AUTHORITY\LOCAL SERVICE'. This is an informational message; no user action is required.
    2015-04-15 11:57:55.17 Server      Registry startup parameters: 
    -d C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\master.mdf
    -e C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Log\ERRORLOG
    -l C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\mastlog.ldf
    2015-04-15 11:57:55.17 Server      Command Line Startup Parameters:
    -s "SQLEXPRESS"
    2015-04-15 11:57:55.48 Server      SQL Server detected 1 sockets with 6 cores per socket and 12 logical processors per socket, 12 total logical processors; using 8 logical processors based on SQL Server licensing. This is an informational message;
    no user action is required.
    2015-04-15 11:57:55.48 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2015-04-15 11:57:55.48 Server      Detected 8157 MB of RAM. This is an informational message; no user action is required.
    2015-04-15 11:57:55.48 Server      Using conventional memory in the memory manager.
    2015-04-15 11:57:55.68 Server      This instance of SQL Server last reported using a process ID of 7840 at 4/15/2015 11:57:47 AM (local) 4/15/2015 3:57:47 PM (UTC). This is an informational message only; no user action is required.
    2015-04-15 11:57:55.68 Server      Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational message
    only. No user action is required.
    2015-04-15 11:57:55.69 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2015-04-15 11:57:55.72 Server      Software Usage Metrics is disabled.
    2015-04-15 11:57:55.73 spid5s      Starting up database 'master'.
    2015-04-15 11:57:55.79 spid5s      20 transactions rolled forward in database 'master' (1:0). This is an informational message only. No user action is required.
    2015-04-15 11:57:55.79 spid5s      0 transactions rolled back in database 'master' (1:0). This is an informational message only. No user action is required.
    2015-04-15 11:57:55.80 Server      CLR version v4.0.30319 loaded.
    2015-04-15 11:57:55.86 spid5s      Service Master Key could not be decrypted using one of its encryptions. See sys.key_encryptions for details.
    2015-04-15 11:57:55.89 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
    2015-04-15 11:57:55.91 spid5s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    2015-04-15 11:57:55.91 spid5s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
    2015-04-15 11:57:55.94 spid5s      SQL Trace ID 1 was started by login "sa".
    2015-04-15 11:57:55.94 spid5s      Server name is '********\SQLEXPRESS'. This is an informational message only. No user action is required.
    2015-04-15 11:57:55.96 spid5s      Failed to verify Authenticode signature on DLL 'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Binn\ftimport.dll'.
    2015-04-15 11:57:55.96 spid5s      Starting up database 'msdb'.
    2015-04-15 11:57:55.96 spid9s      Starting up database 'mssqlsystemresource'.
    2015-04-15 11:57:55.96 spid5s      Error: 17204, Severity: 16, State: 1.
    2015-04-15 11:57:55.96 spid5s      FCB::Open failed: Could not open file e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBData.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).
    2015-04-15 11:57:55.96 spid5s      Error: 5120, Severity: 16, State: 101.
    2015-04-15 11:57:55.96 spid5s      Unable to open the physical file "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBData.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
    2015-04-15 11:57:55.96 spid5s      Error: 17207, Severity: 16, State: 1.
    2015-04-15 11:57:55.96 spid5s      FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'.
    Diagnose and correct the operating system error, and retry the operation.
    2015-04-15 11:57:55.96 spid5s      File activation failure. The physical file name "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf" may be incorrect.
    2015-04-15 11:57:55.99 spid9s      The resource database build version is 11.00.3000. This is an informational message only. No user action is required.
    2015-04-15 11:57:56.02 spid12s     A self-generated certificate was successfully loaded for encryption.
    2015-04-15 11:57:56.03 spid12s     Server is listening on [ 'any' <ipv6> 53345].
    2015-04-15 11:57:56.03 spid12s     Server is listening on [ 'any' <ipv4> 53345].
    2015-04-15 11:57:56.03 spid12s     Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS ].
    2015-04-15 11:57:56.03 spid12s     Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS\sql\query ].
    2015-04-15 11:57:56.04 spid12s     Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the trace flag 7806.
    This is an informational message only. No user action is required.
    2015-04-15 11:57:56.04 Server      SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational
    message. No user action is required.
    2015-04-15 11:57:56.04 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/********.****.local:SQLEXPRESS ] for the SQL Server service. Windows return code: 0xffffffff, state: 53.
    Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been
    manually registered.
    2015-04-15 11:57:56.04 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/********.****.local:53345 ] for the SQL Server service. Windows return code: 0xffffffff, state: 53. Failure
    to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually
    registered.
    2015-04-15 11:57:56.09 spid9s      Starting up database 'model'.
    2015-04-15 11:57:56.10 spid9s      Error: 17204, Severity: 16, State: 1.
    2015-04-15 11:57:56.10 spid9s      FCB::Open failed: Could not open file e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\model.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).
    2015-04-15 11:57:56.10 spid9s      Error: 5120, Severity: 16, State: 101.
    2015-04-15 11:57:56.10 spid9s      Unable to open the physical file "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\model.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
    2015-04-15 11:57:56.10 spid9s      Error: 17207, Severity: 16, State: 1.
    2015-04-15 11:57:56.10 spid9s      FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\modellog.ldf'.
    Diagnose and correct the operating system error, and retry the operation.
    2015-04-15 11:57:56.10 spid9s      File activation failure. The physical file name "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\modellog.ldf" may be incorrect.
    2015-04-15 11:57:56.10 spid9s      Error: 945, Severity: 14, State: 2.
    2015-04-15 11:57:56.10 spid9s      Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
    2015-04-15 11:57:56.10 spid9s      SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
    

    Hi HMLunger,
    Did you install the SQL Server instance successfully? If not, please help to post the summary and detail logs for analysis. By default, the logs can be found in: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
    However, if you fail to start SQL Server Express service after successfully installing SQL Server,
    you might have to change the paths of the files by running the following scripts from the command prompt. For more details, please review this similar
    thread.
    NET START MSSQL$SQLEXPRESS /f /T3608
    SQLCMD -S .\SQLEXPRESS
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    go
    exit;
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    NET STOP MSSQL$SQLEXPRESS
    In addition, you can follow the steps in this KB article to uninstall SQL Server.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Performance issue with pl/sql code

    Hi Oracle Gurus,
    I am in need of your recommendations for a performance issue that I am facing in production envrionment. There is a pl/sql procedure which executes with different elapsed time at different executions. Elapsed Times are 30minutes , 40 minutes, 65 minutes , 3 minutes ,3 seconds.
    Expected elapsed time is maximum of 3 minutes. ( But some times it took 3 seconds too...! )
    Output on all different executions are same that is deletion and insertion of 12K records into a table.
    Here is the auto trace details of two different scenarios.
    Slow execution - 33.65 minutes
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                         1,712,343    1,712,342.6    41.4
    CPU Time (ms)                             1,679,689    1,679,688.6    44.7
    Executions                                        1            N/A     N/A
    Buffer Gets                              ##########  167,257,973.0    86.9
    Disk Reads                                    1,284        1,284.0     0.4
    Parse Calls                                       1            1.0     0.0
    User I/O Wait Time (ms)                       4,264            N/A     N/A
    Cluster Wait Time (ms)                        3,468            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        6            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     4            N/A     N/A
    Sharable Mem(KB)                                 85            N/A     N/A
              -------------------------------------------------------------Fast Exection : 5 seconds
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            41,550       41,550.3     0.7
    CPU Time (ms)                                40,776       40,776.3     1.0
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,995,677    2,995,677.0     4.2
    Disk Reads                                       22           22.0     0.0
    Parse Calls                                       1            1.0     0.0
    User I/O Wait Time (ms)                         162            N/A     N/A
    Cluster Wait Time (ms)                          621            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                       55            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     4            N/A     N/A
    Sharable Mem(KB)                                 85            N/A     N/A
              -------------------------------------------------------------For security reasons, I cannot share the actual code. Its a report generating code that deletes and load the data into table using insert into select statement.
    Delete from table ;
    cursor X to get the master data ( 98 records )
    For each X loop
    insert into tableA select * from tables where a= X.a and b= X.b and c=X.c ..... ;
    -- 12 K records inserted on average
    insert into tableB select * from tables where a= X.a and b= X.b and c=X.c ..... ;
    -- 12 K records inserted on average
    end loop ;1. The select query is complex with bind variables ( explain plan varies for each values )
    2. I have checked the tablespace of the tables involved, it is 82% used. DBA confirmed that it is not the reason.
    3. Disk reads are high during long execution.
    4. At long running times, I can see a db sequential read wait event on a index object. This index is on the table where data is inserted.
    All I need to find is why this code is taking 3 seconds and 60 minutes on the same day and on the consecutive executions ?
    Is there any other approach to find the root cause of this behaviour and to fix it ? Kindly adivse.
    Thanks in advance your help.
    Regards,
    Hari
    Edited by: BluShadow on 26-Sep-2012 08:24
    edited to add {noformat}{noformat} tags.  You've been a member long enough to know to do this yourself... so please do so in future.  ({message:id=9360002})                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hariharan ST wrote:
    Hi Oracle Gurus,
    I am in need of your recommendations for a performance issue that I am facing in production envrionment. There is a pl/sql procedure which executes with different elapsed time at different executions. Please reedit your post and add some code tags around the trace information. This would improve readability greatly and will help us to help you
    example
    {<b></b>code}
    select * from dual;{<b></b>code}
    Based upon your description I can imagine two things.
    a) The execution plan for the select query does change frequently.
    A typical reason can be not up to date statistics.
    b) Some locking / wait conflict. For example upon a UK index.
    Are there any other operations going on while it is slow? If anybody inserts a value, then your session will wait, if the same (PK/UK) value also is to be inserted.
    Those wait events can be recognized using standard tools like oracle sql developer or enterprise manager while the query is slow.
    Also go through the links that are in the FAQ. They tell you how to get better information for makeing a tuning request.
    SQL and PL/SQL FAQ
    Edited by: Sven W. on Sep 25, 2012 6:41 PM

  • Issue with Essbase - SQL Interface in UNIX box

    Hi All,
    One of our customer is facing an issue while trying to connect to the Oracle datasource from Essbase version 9.0.1.0.00 in a 64 bit UNIX box. He is using Oracle wired protocol for SQL interface.
    Customer has tried the below and getting the below error:
    1) Ran the nst-sql.sh file.
    2) Edited the odbc.ini file and the .profile file with the required dsn information.
    3) From the console selected the open SQL option and received the following error " There are no datasources defined. Please create one to continue"
    I have attached the odbc.ini file and the .profile file for your reference.
    Any help appreciated.
    Thanks,
    Bharathi Raja
    ODBC.ini file
    ARBORPATH=/hyper/arbor/Hyperion/AnalyticServices
    HYPERION_HOME=/hyper/arbor/Hyperion
    ESSLANG=English_UnitedStates.Latin1@Binary
    SHLIB_PATH=.:/hyper/arbor/Hyperion/common/ODBC/Merant/5.0/lib:/hyper/arbor/Hyperion/AnalyticServices/bin:$SHLIB_PATH
    PATH=$PATH:$ARBORPATH/bin:/usr/lib:$ARBORPATH:$HYPERION_HOME/common/ODBC/Merant/5.0/lib
    LD_LIBRARY_PATH=$HYPERION_HOME/common/ODBC/Merant/5.0/lib
    ulimit -c unlimited
    ulimit -n 1024
    LIBPATH=/hyper/arbor/Hyperion/common/ODBC/Merant/5.0/lib
    LANG=en_US
    ODBCINI=/hyper/arbor/Hyperion/Essbase/bin/.odbc.ini
    [ODBC Data Sources]
    DB2 Wire Protocol=DataDirect 5.0 DB2 Wire Protocol Driver
    dBase=DataDirect 5.0 dBaseFile(*.dbf)
    FoxPro3=DataDirect 5.0 dBaseFile(*.dbf)
    Informix=DataDirect 5.0 Informix
    Informix Wire Protocol=DataDirect 5.0 Informix Wire Protocol
    Oracle=DataDirect 5.0 Oracle
    Oracle Wire Protocol=DataDirect 5.0 Oracle Wire Protocol
    Progress9=DataDirect 5.0 Progress SQL92
    Progress10=DataDirect 5.0 Progress OpenEdge
    SQLServer Wire Protocol=DataDirect 5.0 SQL Server Wire Protocol
    Sybase Wire Protocol=DataDirect 5.0 Sybase Wire Protocol
    Text=DataDirect 5.0 TextFile(*.*)
    [DB2 Wire Protocol]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARdb220.sl
    Description=DataDirect 5.0 DB2 Wire Protocol Driver
    AddStringToCreateTable=
    AlternateID=
    Collection=OS/390 and AS/400 (leave blank for DB2 UDB)
    Database=DB2 UDB (leave blank for OS/390 and AS/400)
    DynamicSections=100
    GrantAuthid=PUBLIC
    GrantExecute=1
    IpAddress=DB2 server host
    IsolationLevel=CURSOR_STABILITY
    Location=OS/390 and AS/400 (leave blank for DB2 UDB)
    LogonID=UID
    Password=PWD
    Package=DB2 package name
    PackageOwner=
    TcpPort=DB2 server port
    WithHold=1
    [dBase]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARdbf20.sl
    Description=DataDirect 5.0 dBaseFile(*.dbf)
    ApplicationUsingThreads=1
    CacheSize=4
    CreateType=dBASE5
    Database=$HYPERION_HOME/common/ODBC/Merant/5.0/demo
    DataFileExtension=DBF
    ExtensionCase=UPPER
    FileOpenCache=0
    IntlSort=0
    LockCompatibility=dBASE
    Locking=RECORD
    UseLongNames=0
    UseLongQualifiers=0
    [FoxPro3]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARdbf20.sl
    Description=DataDirect 5.0 dBaseFile(*.dbf)
    ApplicationUsingThreads=1
    CacheSize=4
    CreateType=FoxPro30
    Database=$HYPERION_HOME/common/ODBC/Merant/5.0/demo
    DataFileExtension=DBF
    ExtensionCase=UPPER
    FileOpenCache=0
    IntlSort=0
    LockCompatibility=Fox
    Locking=RECORD
    UseLongNames=0
    UseLongQualifiers=0
    [Informix]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARinf20.sl
    Description=DataDirect 5.0 Informix
    ApplicationUsingThreads=1
    CancelDetectInterval=0
    CursorBehavior=0
    Database=db
    EnableInsertCursors=0
    GetDBListFromInformix=1
    HostName=Informix host
    LogonID=UID
    Password=PWD
    Protocol=onsoctcp
    ServerName=Informix server
    Service=Informix service name
    TrimBlankFromIndexName=1
    [Informix Wire Protocol]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARifcl20.sl
    Description=DataDirect 5.0 Informix Wire Protocol
    ApplicationUsingThreads=1
    CancelDetectInterval=0
    Database=db
    HostName=Informix host
    LogonID=UIDUID
    Password=PWDPWD
    PortNumber=Informix server port
    ServerName=Informix server
    TrimBlankFromIndexName=1
    [Oracle]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARor820.sl
    Description=DataDirect 5.0 Oracle
    ApplicationUsingThreads=1
    ArraySize=60000
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=UID
    OptimizeLongPerformance=0
    Password=PWD
    ProcedureRetResults=0
    ServerName=Oracle host
    UseCurrentSchema=1
    [Oracle Wire Protocol]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARora20.sl
    Description=DataDirect 5.0 Oracle Wire Protocol
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=Oracle server
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=UID
    Password=PWD
    PortNumber=1521
    ProcedureRetResults=0
    SID=Oracle SID
    UseCurrentSchema=1
    [Progress9]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARpro920.sl
    Description=DataDirect 5.0 Progress SQL92
    DatabaseName=db
    HostName=Progress9 host
    LogonID=UID
    Password=PWD
    PortNumber=Progress9 server port
    [Progress10]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARpro1920.sl
    Description=DataDirect 5.0 Progress OpenEdge
    DatabaseName=db
    HostName=Progress10 host
    LogonID=UID
    Password=PWD
    PortNumber=Progress10 server port
    [SQLServer Wire Protocol]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARmsss20.sl
    Description=DataDirect 5.0 SQL Server Wire Protocol
    Address=SQLServer host,SQLServer server port
    AnsiNPW=Yes
    Database=db
    LogonID=UID
    Password=PWD
    QuotedId=No
    [Sybase Wire Protocol]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARase20.sl
    Description=DataDirect 5.0 Sybase Wire Protocol
    ApplicationName=
    ApplicationUsingThreads=1
    ArraySize=50
    Charset=
    CursorCacheSize=1
    Database=db
    DefaultLongDataBuffLen=1024
    EnableDescribeParam=0
    EnableQuotedIdentifiers=0
    InitializationString=
    Language=
    LogonID=UID
    NetworkAddress=Sybase host,Sybase server port
    OptimizePrepare=1
    PacketSize=0
    Password=PWD
    RaiseErrorPositionBehavior=0
    SelectMethod=0
    WorkStationID=
    [Text]
    Driver=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/ARtxt20.sl
    Description=DataDirect 5.0 TextFile(*.*)
    AllowUpdateAndDelete=0
    ApplicationUsingThreads=1
    CacheSize=4
    CenturyBoundary=20
    Database=$HYPERION_HOME/common/ODBC/Merant/5.0/demo
    DataFileExtension=TXT
    DecimalSymbol=.
    Delimiter=
    FileOpenCache=0
    FirstLineNames=0
    IntlSort=0
    ScanRows=25
    TableType=Comma
    UndefinedTable=GUESS
    [ODBC]
    IANAAppCodePage=4
    InstallDir=$HYPERION_HOME/common/ODBC/Merant/5.0
    Trace=0
    TraceDll=$HYPERION_HOME/common/ODBC/Merant/5.0/lib/odbctrac.sl
    TraceFile=odbctrace.out
    UseCursorLib=0
    *.Profile file*
    HYPERION_HOME=/hyper/arbor/Hyperion
    ESSLANG=English_UnitedStates.Latin1@Binary
    SHLIB_PATH=.:/hyper/arbor/Hyperion/common/ODBC/Merant/5.0/lib:/hyper/arbor/Hyperion/AnalyticServices/bin:$SHLIB_PATH
    PATH=$PATH:$ARBORPATH/bin:/usr/lib:$ARBORPATH:$HYPERION_HOME/common/ODBC/Merant/5.0/lib
    LD_LIBRARY_PATH=$HYPERION_HOME/common/ODBC/Merant/5.0/lib
    ulimit -c unlimited
    ulimit -n 1024
    LIBPATH=/hyper/arbor/Hyperion/common/ODBC/Merant/5.0/lib
    LANG=en_US
    ODBCINI=/hyper/arbor/Hyperion/Essbase/bin/.odbc.ini

    The essbase user needs to be restarted to be able to see the new odbc.ini entries.
    After editing the files you mentioned, did you restart the essbase services?
    At the very least, did you exit EAS, then restart EAS? (I don't remember which one of these will do it.) If your entries are correct, then one of these should get the essbase user to 'see' the odbc connection.
    Also, it might help to remove extraneous entries in the .odbc.ini file, kind of difficult to read thru all of that.
    Robert
    Edited by: RobertR3 on Mar 17, 2009 10:19 AM

  • Issues with the SQL wrapper scripts created with the DB adapter

    Hi All,
    We have the wrapper sql scripts created with the DB adapter configurations which are being used to invoke the stored procedures.
    To give you a background on the wrapper sql scripts-The Adapter Configuration wizard generates a wrapper API when a PL/SQL API has arguments of data types, such as PL/SQL Boolean, PL/SQL Table, or PL/SQL Record.
    These two SQL files are saved in the same directory where the WSDL and XSD files are stored, and are available in the Project view.
    The issue we are facing now is that whenever the associated package or the procedure structure undergoes a change we see an error as given below:
    An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/Application1_ABC_ESB/DBADP_Update_Out.wsdl [ DBADP_Update_Out_ptt::DBADP_Update_Out(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DBADP_Update_Out' failed due to: Error while trying to prepare and execute an API. An error occurred while preparing and executing the APPS.XXIRIS_SOA_R_WRAPPER.XXIRIS_AR_CUST_K$ API. Cause: java.sql.SQLException: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body "APPS.XXIRIS_AR_CUST_K" has been invalidated ORA-04065: not executed, altered or dropped package body "APPS.XXIRIS_AR_CUST_K" ORA-06508: PL/SQL: could not find program unit being called: "APPS.XXIRIS_AR_CUST_K" ORA-06512: at "APPS.XXIRIS_SOA_R_WRAPPER", line 1 ORA-06512: at line 1 [Caused by: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body
    In such cases we need to either execute the wrapper scripts again or refresh the connection pool in case the wrapper sql scripts for that procedure are not available.
    In some cases we see that the first instance errors out.However the second request and the subsequent requests after that goes through successfully.
    Please do let me know if anyone has faced such issues before.
    Any inputs in this regard would be of great help.
    Thanks in advance!
    Deepthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I stumbled on a link in the oracle forum which says that the "create or replace package XXX" at the start of the PL/SQL procedure when run seems to intermittently cause the ORA-04068: existing state of packages has been discarded problem.
    As per the solution suggested an “alter package XXX compile" can be executed after the changes are made and then we would no longer get the error in BPEL/ESB and dont have to bounce the server too.
    __http://forums.oracle.com/forums/thread.jspa?threadID=185762_
    However the above solution does not seem to resolve the issue.
    Any help in this regard would be highly appreciated.
    Thanks,
    Deepthi

  • PI 7.0 - jdbc receiver issue with MS SQL Server

    Hello Experts,
    I have a jdbc receiver scenario on PI 7.0 for just one table on MS SQL Server and I'm using the update_insert action.
    When the entry does not exist it is created normally and returns insert_count=1 and update_count=0.
    When the entry already exists, it's generated the statements for insert and for update (the 2 statements are visible on RWB) and returns insert_count=0 and update_count=0.
    Any error occurs and in the RWB the log shows the request was processed with success.
    I've already enabled the log for sql statements on the channel, but the statements are correct.
    I've reviewed also the <key> tag on the mapping and it's ok.
    Any suggestion to try fix this issue?
    Thank you very much.

    Can you please check in the database the format of the specified fields in the update statement. Sometime we can have situations that the insert works but the subsequent update fails. An example:
    Suppose key field1 value being passed from XI is  '1234' in characters but in db it is stored as '00001234'.
    Regards,
    Indranil

  • Issue with Oracle.sql.NUMBER in Java Stored Procedure

    When we try to make a call to the Oracle.sql.NUMBER(String) inside a java stored procedure and pass values from '01' to '09', it throws java.lang.StringIndexOutOfBoundsException: String index out of range: 3
    We use Oracle 9.2.0.6 - JServer Release 9.2.0.6.0.
    It works fine for other values. Please find below the code used for simulating the issue outside the application. Thanks.
    create or replace and compile java source named testNumber as
    import oracle.sql.NUMBER;
    import java.sql.SQLException;
    public class TestNumber
           public static String convertNumber(String parm) {
                     NUMBER nTest;
                     try {
                             nTest = new NUMBER(parm);
                             return "TRUE";
                     }catch (SQLException sqle) {
                             return "FALSE";
    create or replace function test_number (p_str in varchar2) return varchar2 as
    language Java name 'TestNumber.convertNumber(java.lang.String) return
    java.lang.String';
    select test_number('05') from dual;  - Throws exception ORA-29532: Java call terminated by uncaught Java exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 3
    select test_number('5') from dual; - Works fine
    select test_number('010') from dual; - Works fine

    Siva,
    I'm only guessing, but it could be an Oracle bug, in which case I suggest checking with Oracle Support.
    (You do have a support contract, don't you? ;-)
    Did you try compiling and running your java class "TestNumber" outside the database?
    Class "oracle.sql.NUMBER" should be in Oracle's JDBC driver, I believe.
    Good Luck,
    Avi.

  • Ms SCM has compatibility issue with MS SQL 2008 & 2008 R2

    Hi,
    I'm trying to install Ms Security Compliance Manager in Windows 8.1  (64-bit machine). During the installation, it gives me the following error message:
    This program has compatibility issues
    Microsoft SQL Server (2008 & 2008 R2)
    Could anyone help me to solve this issue?
    Kind regards,
    Mohamed Maricar

    Hi,
    Please refer to the known issues part in the article below:
    Microsoft Security Compliance Manager (SCM) - Release Notes
    This is a known issue that causes this message to display after installing Microsoft SQL Server 2008 R2 on a computer running either Windows 8 or Windows Server 2012. The workaround to resolve this issue is to click the Run the program without getting
    help option on the warning message and then proceed with the SCM 3.0 installation. SCM 3.0 will install on the computer without any impact from the warning message.
    Besides, regarding SCM related issue, we'd better seek help in the following forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=compliancemanagement
    Best regards
    Michael Shao
    TechNet Community Support

  • Connection issue with Pervasive SQL V8 source with BODI

    Dear all,
    We in GE Water have a new source came in called Pervasive SQL. We are facing some issue while loading the data from the same. We have established the connection via an ODBC and we are able to view data for some of table. However, we are not able to transfer the data into file/table using BODI.
    Could any of our experts help me over here if they have worked on Pervasive SQL?
    Thanks & regards,
    Sohil Patel

    Hi,
    Pervasive SQL is not a supported DB with DataServices. Maybe you can connect it via generic ODBC but that doesnt matter that DS will act as expected.
    Regards
    -Seb.

  • Issue with aflobbld.sql for FND_LOBS_CTX creation

    Hi All,
    As part of the post patching instruction for patch 350000 we started the script aflobbld.sql which ran for about 2days and then we cancelled it. Later we dropped the index and reinitiated the script. Now the script fails with the below error
    SQL> @$FND_TOP/sql/aflobbld.sql APPLSYS APPS
    declare
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in dreii0fsh
    ORA-01653: unable to extend table APPLSYS.DR$FND_LOBS_CTX$I by 16 in tablespace
    APPS_TS_TX_DATA
    ORA-06512: at line 278
    When I checked the free space it was 32 GB. I added 10 more GB of space to the tablespace and reinitiated it. It still failed with the error. Any ideas on what could be the issue?
    SQL> select sum(length(FILE_DATA))/1024/1024 from "APPLSYS"."FND_LOBS";
    SUM(LENGTH(FILE_DATA))/1024/1024
    23062.35
    SQL>
    SQL> select
    FILE_FORMAT,
    count(*)
    from
    fnd_lobs
    group by FILE_FORMAT; 2 3 4 5 6
    FILE_FORMA COUNT(*)
    binary 50265
    text 9816
    IGNORE 4671
    TEXT 48612
    BINARY 86915
    SQL>
    SQL> select sum(bytes)/1024/1024 from dba_free_space where tablespace_name='APPS_TS_TX_DATA';
    SUM(BYTES)/1024/1024
    43523.25
    SQL>
    When the script was in progress DR$FND_LOBS_CTX$I table increased to almost 40GB
    SQL> select sum(bytes)/1024/1024,segment_name from dba_segments where segment_name like '%FND_LOBS_CTX%' group by segment_name;
    SUM(BYTES)/1024/1024 SEGMENT_NAME
    .125 DR$FND_LOBS_CTX$R
    39994.75 DR$FND_LOBS_CTX$I
    When I checked the size of this table in PROD surprisingly its only 152 mb
    SQL> select sum(bytes)/1024/1024,segment_name from dba_segments where segment_name like '%FND_LOBS_CTX%' group by segment_name;
    SUM(BYTES)/1024/1024
    SEGMENT_NAME
    .125
    DR$FND_LOBS_CTX$R
    44.625
    DR$FND_LOBS_CTX$X
    152.375
    DR$FND_LOBS_CTX$I
    SQL>
    Any help on this would be really appreciated..We have been struggling with it since last ten days to fix it.
    Thanks

    Pl see if these MOS Docs help
    "Rebuild Help Search Index" fails with ORA-01631: max # extents (505) reached in table APPLSYS.DR$FND_LOBS_CTX$I (Doc ID 367861.1)
    TROUBLESHOOTING GUIDE (TSG) : UNABLE TO EXTEND Errors (Doc ID 1025288.6)
    HTH
    Srini

Maybe you are looking for

  • Uninstalling Soundtrack Pro and Loops

    With the recent purchase of a MacBook Pro I also acquired the Final Cut Studio HD. I have run out of space on my local hard drive and in the process of cleaning it off and moving programs and files to an external I am looking to delete Soundtrack Pro

  • Itunes crashes on start up on new laptop

    I installed itunes in my new HP laptop and when it tries to open it says itunes has stopped working and windows has shut it down with no help.

  • How to set a default open with, for all files

    I would simply like to make all my .avi files to open with VLC, rather than Quicktime. I have done the "change default open with", but it's only for that file. Any way to make all avi's open with VLC? Thanks!

  • Looking for oracle JDBC driver that support Rowset

    I am using oracle driver "oracle.jdbc.OracleDriver" downloaded from oracle.com and i am using cached rowset in my program but my program gave me runtime error : Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDataba

  • Windows Rfcexec rfc's

    Hi All, We have some RFC's running in our server manually, everyday we execute those rfc's at OS level. Can anyone please suggest us is there any procedure to run those rfc's without executing daily at OS level. How to register Program Id in SM59 lik