Where is TABLES_ORACLE.SQL ?

Please check Adding Email Server and comment.
This is related to setting up Email, Printer etc. BUT I am getting Sequence not found error.
XMLP Enterprise 5.6.2 on XP

Please check the MANUAL installation, it is a "bug" that the database setup is not described in the windows/linus section. The corrected setup can be found here:
http://www.oracle.com/technology/software/products/publishing/install.html
The file is found in (as described in the installation guide) under:
\manual\SQL_Scripts in the SERVER download.
Hope that helps,
Klaus

Similar Messages

  • If CASE Statement can be used just nest to 'WHERE' keyword in sql?

    HI All,
    There are 2 tables,
     dbo.headcount_smart_view & dbo.headcount_user_view,they
    are not joined i.e. there is no join between these 2 tables.
     User is trying to create the access restriction on table
    dbo.headcount_smart_view as below,
    The following case clause is just next to 'WHERE' keyword :
    CASE select distinct dbo.headcount_user_view.role_cd from
    dbo.headcount_user_view where UPPER(dbo.headcount_user_view.cmt_id) = UPPER(@Variable('BOUSER'))
    WHEN 8 THEN dbo.headcount_smart_view.l3_id In (select distinct
    dbo.headcount_user_view.divid from dbo.headcount_user_view
    where UPPER(dbo.headcount_user_view.cmt_id)=UPPER(@Variable('BOUSER')))
    WHEN 9 THEN dbo.headcount_smart_view.l4_id In (select distinct
    dbo.headcount_user_view.divid from dbo.headcount_user_view
    where UPPER(dbo.headcount_user_view.cmt_id)=UPPER(@Variable('BOUSER')))
    ELSE
    dbo.headcount_smart_view.l2_id In (select distinct
    dbo.headcount_user_view.divid from dbo.headcount_user_view
    where UPPER(dbo.headcount_user_view.cmt_id)=UPPER(@Variable('BOUSER')))
    END
    The user is getting 'syntax error', it seems that the value is not getting compared with any column hence getting the error.
    can case statment  be used just next to 'WHERE' keyword in sql? 

    I don't have the entire table query...
    but could u tell me wil the sql given below work ....
    if not, why? and what can be done to make it work ?
    SELECT * FROM Customers 
    where case select  CustomerID from customers 
    when 8 then 'Spock'
    when 9 then 'Yedi'
    else 'Jedi'
    end;
    Nope
    because of wrong syntax
    What the purpose of the case when statement here? I'm not seeing a condition in WHERE. You should use it in a condition like below
    SELECT * FROM Customers
    where case CustomerID
    when 8 then 'Spock'
    when 9 then 'Yedi'
    else 'Jedi'
    end = @SomeParameter
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable

    Hi,
    I have been tasked with making a complex package more generic.
    To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
    So to help articulate my question further I have create a package and database as follows; -
    USE [KWPlay]
    GO
    /****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[tblTest](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [Description] [nvarchar](50) NULL,
    CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    I populated this table with a single record.
    I unit tested the SQL within SSMS as follows;
    SELECT * FROM dbo.tblTest
    Result; -
    ID           
    Description
    1             
    Happy
    DECLARE @myParam NVARCHAR(100)
    SET @myParam = 'Sad'
    UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    SELECT * FROM dbo.tblTest
    Result; -
    ID   
    Description
    1    
    Sad
    Within the package I created two variables as follows; -
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    Name: strStatus
    Scope: Package
    Data Type: String
    Value: Happy
    I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
    However when I run the above package I get the following error; -
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
    "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. 
    The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
    errors.
    SSIS package "Package.dtsx" finished: Failure.
    I also tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    However I received the error; - 
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "Package.dtsx" finished: Failure.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    and; - 
    Result; - 
    SSIS package "Package.dtsx" starting.
    SSIS package "Package.dtsx" finished: Success.
    Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • Where to run SQL statements in Oracle Database 11gR1 ?

    Folks,
    Hello. I have just installed Oracle Database 11gR1 and login to Database Control page. There are 4 tabs on the top: Database, Setup, Preference, Help and Logout.
    I just create a table "table1" in "Database" tap. But I don't see anywhere to run SQL statement such as Select, Insert, Update.
    Can any folk tell me where to run SQL statements in Oracle Database 11gR1 ?
    Or
    Can any folk provide a User Manual for Oracle DB 11gR1 ?

    You can run from a terminal or install an SQL client and connect from there.
    http://www.articlesbase.com/databases-articles/how-to-install-oracle-11g-client-1793770.html
    Best Regards
    mseberg
    Assuming you have an oracle OS user on Linux you can try typing sqlplus at you OS command prompt. Generally you will have a .bash_profile with setting like this:
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT 
    export ORACLE_SID=ORCL
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    PATH=/usr/sbin:$PATH; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    # CLASSPATH:
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
    export EDITOR=vi
    set -o vi
    PS1='$PWD:$ORACLE_SID >'Edited by: mseberg on Jul 11, 2011 3:18 PM

  • FIM Reporting installation (where to put SQL Reporting Services?)

    Hi,
    I'm installing FIM 2010 R2 SP1 with Reporting feature.
    It is going to be installation with separate SQL and separate servers for SCSM DW and SCSM MS.
    I have SQL where I prepared 3 instances (default one for FIM databases, one for SCSM SM databases, one for SCSM DW databases). My question is - which one of them should have SQL Reporting services installed?
    Borys Majewski, Identity Management Solutions Architect (Blog: IDArchitect.NET)

    When using SCSM 2012 (SP1) you also have to install the analytic services on the instances. I can't remember exactly if it was on the DW or MS, but it would tell you during the installation of it.
    And make sure your FIM version is at leat 4.1.3451, I went through a lot of pain with version 4.1.3419 en the
    KB256143 error.
    Find me on linkedin: http://nl.linkedin.com/in/tranet

  • Where is the sql file store in & Where can I find php.ini on Mac osx client

    In windows xp i can find the sql file in side the folder of MySQL and I can find php.ini in the C directory under the php's folder but in mac os Icannot find it could anyone tell me where it is and how can I find thanks.

    Hi--
    apples-Computer:/usr/local/mysql apple$ cd data
    -bash: cd: data: Permission denied
    apples-Computer:/usr/local/mysql apple$ sudo sh
    Password:
    apples-Computer:/usr/local/mysql apple$ cd data
    -bash: cd: data: Permission denied
    apples-Computer:/usr/local/mysql apple$ cd data
    -bash: cd: data: Permission denied
    apples-Computer:/usr/local/mysql apple$ chmod +rw
    data
    chmod: data: Operation not permitted
    It looks to me like you haven't gained root access in the examples above. If you follow Niel's example:
    <pre class="command">sudo sh</pre>you should get a different prompt when you actually are the root user:
    <pre class="command">sh-2.05b#</pre>because you'd be changing shells from bash to sh.
    I'd like to set the folder /mysql/data to except me
    for coppy database folder
    How can I get the permittion to access the
    /mysql/data folder
    You should be able to do anything to those files without changing permissions if you're the root user.
    But, just for your information, I never directly move the database files. If I want to move a database between computers, I always use the mysqldump command and redirect it to a file:
    <pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name > /path/to/output/file.sql</pre>That makes a single text file with all the SQL commands necessary to build your database tables and populate them with your data. If you want to restrict it to just one table from a database, you can add the table name after the db_name:
    <pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name table_name > /path/to/output/file.sql</pre>To import that file into another machine, you have to create the database first, which you could do with phpAdmin. Then, just import the tables and data like this:
    <pre class="command">/usr/local/mysql/bin/mysql -u root -p db_name < /path/to/output/file.sql</pre>That'll create all your tables and populate them with your data.
    If you copy your databases this way, you're much less likely to run into trouble with compatibility issues if you're moving between machines with different versions of MySQL.
    charlie

  • How to find where the below sql is used in database

    Hi all,
    I am tring to find the below SQL in our data base where it is used?
    I had done the checking in all reports manually, But have no luck.
    But i am sure that the below sql is in our data base and having some issue on it.
    Can any one please let me know how to find where the below query is used in our database? I mean in packages/ triggers/ procedures or any where in our database
    Please find the query
    select count(sh.shipment_gid) from SHIPMENT sh, SHIPMENT_TYPE stp, LOCATION ld where (sh.shipment_gid in (select sstop.shipment_gid from SHIPMENT_STOP sstop where (sstop.appointment_delivery > trunc(TO_DATE(:1, :2), :3)) and (sstop.appointment_delivery is not null))) and (sh.is_to_be_held=:"SYS_B_0") and (sh.domain_name=:4) and (sh.insurance_policy_number like :"SYS_B_1") and (sh.perspective=:"SYS_B_2") and (sh.shipment_type_gid=stp.shipment_type_gid) and (sh.dest_location_gid=ld.location_gid(+)) and (stp.shipment_type_xid!=:5) order by ld.location_name, sh.start_time
    Regards,
    Dpk

    There is video demonstration how to import from data dictionary.
    After import you can select from the main menu: View->DDL File Editor menu item to open the DDL dialog and then click on "Generate" button on the dialog. When the DDL is generated you can search in it using "Find" button.
    Ivan

  • Where clause in sql query for updateable report

    Why is the following not working as source for an updateable report ?
    select customer_name from temp_customers
    where customer_type = :my_field;
    How can I make a filter for an updateable report that is based on a field on my page ?
    Greetings Bernd

    Howard,
    The htmldb_item API package allows you to display column values in a report as HTML form fields. You have a choice of different types of form fields. In your example for instance you get a select list by using the function select_list_from_lov. But by simply placing form fields in an HTML page, you don't specify that those fields are actually supposed to update data in a database. You need an after submit process that is actually performing the update.
    You can implement this type of process manually using your own PL/SQL code. Or you can have HTML DB do this for you. If for example you were using the tabular form wizard, you would get an updateable report, including the update process and even including checksum functionality to make sure that you don't overwrite another person's changes (lost update detection).
    If you use the wizard, the report form items use the build-in display types. This means you don't have to do your own calls to htmldb_item as part of your query. It is generally advisable to use the build-in types as they are easier to work with and are only rendered for the rows actually shown as opposed to be rendered for the entire result set.
    If you do choose to use htmldb_item, you'll have to code your own PL/SQL code to perform the updates and you should also include some logic for lost update detection. The HTML DB documentation provides information on how to manually process data from tabular forms.
    Hope this clarifies your question about updateable reports,
    Regards,
    Marc

  • Conditional where, or PL/SQL block as source for an interactive report?

    I have this situation: The main screen of my application shows a list of documents. For now, there has to be a quick "security" built in, so administrators can see all documents, but other users can only see the documents they created (login of creator is stored in the documents table). In the future we'll probably use VPD's to enforce some rules, but for now we need a quick solution.
    So i stored the administrators in a seperate table. Now i want the interactive report on the main page act as follows:
    - If an admin is logged in, it has to have this query: select field 1, field 2, field 3 from documents
    - For all other users: select field 1, field 2, field 3 from documents where creator = :app_user
    Is this possible in one interactive report? I could make two reports with the different queries and make them conditional according to who is logged in, but this gives me two interactive reports to maintain. Is it possible to use a PL/SQL block as source for the report? I tried, but I get syntax errors. Is it possible to make the where clause conditional on some way?

    Hi,
    Install Demonstration application to your workspace:
    Home>Create Application and select Demonstration Application.
    Check page 1 interactive report. That should give idea how you do it.
    Br, Jari

  • Dynamically adding filters in where clause in sql server

    Hello I have a question, 
    may be asked many times but could not find a thread,
    I have 8 parameters,... and user can select any of these parameters they can select 3,4 or all 8.
    I know we could use dynamic sql for this, because the sql is same.. just the where clause changes as how many parameters we are selecting, 
    i am using sql server 2012.. is there a easy way to manage this,
    Please let me know.

    Consider static (dynamic) search:
    http://www.sommarskog.se/dyn-search.html
    Alternative, dynamic SQL:
    http://www.sqlusa.com/bestpractices/dynamicsql/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Where to download sql server 2012 upgrade advisor

    Hi,
    I want to download sql server 2012 upgrade advisor. But http://download.microsoft.com/download/F/E/D/FEDB200F-DE2A-46D8-B661-D019DFE9D470/ENU/x64/sqlua.msi link does not work. It says connection timed out. Can anyone tell me where can I download this?
    Thanks,
    Preetha

    The link
    http://download.microsoft.com/download/F/E/D/FEDB200F-DE2A-46D8-B661-D019DFE9D470/ENU/x64/sqlua.msi
    works for me.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Where to download SQL Server 2008 R2

    We have a license for SQL Server 2008 R2 Enterprise, but lost the installation disk.  We are moving to a new updated server.  Where can I download the software?  Can only find links for 2014 now.
    Thanks.

    Hello,
    You can still download evaluation edition from the following URL.
    http://sqlserver.dlservice.microsoft.com/download/9/C/0/9C036510-3218-4258-8B03-67DC1D6A497C/SQLFULL_ENU.iso?lcid=1033
    Then provide the key you have on the Product Key page of SQL Server setup.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Where to running SQL Scripts after install of ODAC for Oracle Client?

    I just installed ODAC for Oracle Client on a windows server, that runs a sql server database, for developers to connect a web app to an Oracle/Unix database. The install states to run SQL scripts located in the $ORACLE_HOME\ASP.NET\SQL directory after the install. I'm not sure where to run them? On the ORACLE DB on the Unix server? If someone could bring me up to speed I would appreciate it. Thanks.

    If I do run the scripts, do you know what user they should be run as? The developer are using ASP.NET for connectivity.
    Why there is no Oracle Expert answer this simple question? ?
    After ODAC 11.1.0.7.20 installation completed, there is a message in the last screen:
    *"Run the SQL script located in c:\app\Administrator\product\11.1.0\client_1\ASP.NET\SQL directory for a new installation or an upgrade of Oracle Providers for ASP.NET"*
    The question is: How to run these 9 SQL scripts ?
    In SQL*Plus, which oracle user should I connect to in order to run these 9 scrips, including:
    InstallAllOracleASPNETProviders.sql
    InstallOracleASPNETCommon.sql
    InstallOracleMembership.sql
    InstallOraclePersonalization.sql
    InstallOracleProfile.sql
    InstallOracleRoles.sql
    InstallOracleSessionState.sql
    InstallOracleSiteMap.sql
    InstallOracleWebEvents.sql

  • Where the PL/SQL blocks is stored

    Hello,
    Is there any table like where the last
    complied PL/SQL block is stored in a database.
    Thanks and regards
    shawlin

    I'm not sure exactly what you are asking. If you are looking for the source code (USER_SOURCE, ALL_SOURCE, DBA_SOURCE). If you are looking for the last compile date/time (USER_OBJECTS, ALL_OBJECTS, DBA_OBJECTS).

  • Where to put SQL Server JDBC driver in Tomcat?

    Can anyone tell me where should I put the Microsoft SQL Server JDBC driver in the Tomcat and can make it work?

    You may also need to place the full path in the classpath variable. You can also download install instructions from the same page where you access the microsoft driver.

Maybe you are looking for

  • Error while installing ODEQ

    Hi, There is a particular error coming while installing Oracle Data Enterprise Quality 9.0.8 in integration with Oracle Data Integrator(ODI). The error details are as below:- 1st Case:--- Initialising Director Store instance Initialising Director Sto

  • Can i delete .zip files after extraction

    for example like after i download minecraft or do i have to keep it

  • Program Monitor Size Problem

    I am able to import .mpeg files into PP CS5.  However, while my Source Monitor auto sizes the material correctly, the same material appears zoomed in on my Program Monitor.  I have selected "Fit" as the Program Monitor size.  How do I correct this? 

  • Updating photo dates back to 1920's

    I use the "Adjust Date and Time" function to properly sort my scanned old family photos taken years ago.  Many were taken as far back at 1901.  Any date I change will not go back beyond the 1940's when I input the change, unless I change it a second

  • Not letting me import any photos, RAw or JPG and all the pictures i had in lightroom are gone!

    This has been very very frustration!!. Lightroom is not letting me import any pictures at all!! and all of the pictures i had on light room are now gone. i did not have this problem a week ago and nothing has changed! This needs to be fixed ASAP plea