Table name in scripts

Hi
I need the table name that contains all script form names and print program names

Hi,
TNAPR Table stores all the Script form names and Print Program Names.
You can find all the Standard Script Names in table TNAPR
Regards,
Priyanka.

Similar Messages

  • Script name verstion number stored table name

    hi experts
    i want TABLE NAME of script name and verstion number are  which table stored .
    ps rao

    Hi srihari,
    Table which stores the name of scripts are TNAPR
    In version 4.6 it was saved in D010S and field name was 'prog'
    You can get all the objects in table TADIR(ecc6.0)
    regards,
    Ranveer.

  • Table name where all the SAP Script names are stored

    Hi Gurus,
                   Can i know the table name where all the SAP Script names are stored in SAP Database.
                   Thanks in advance,
                    Shyam.

    Yes TNAPR is the table which contains sapscipts name and print program names.
    Step:1: Goto to the Table TNAPR using SE11
    Step:2: Get the Contents of the Table(CNTRLSHIFTF10)
    Step:3: On the Table Content Selection Screen, Type the driver program name in the field PGNAM and execute(F8).
    Step:4: FONAM field of the result display contains the SAPScript Name for our driver program.
    Regards,
    Lalit Mohan Gupta.

  • How to get the table name in the trigger definition without hard coding.

    CREATE  TRIGGER db.mytablename
    AFTER UPDATE,INSERT
    AS
        INSERT INTO table1(col1)
        SELECT InsRec.col1   
        FROM
        INSERTED Ins
       --Below i am calling one sp for which i have to pass the table name
       EXEC myspname 'tablename'
      In the above trigger,presently i am hard coding the tablename
      but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table name

    I really liked your audit table concept.  You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields.  Wanted to share my end result.
    USE [YourDB]
    GO
    /****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
    ON [dbo].[YourTable]
    AFTER INSERT,DELETE,UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    Declare @v_AuditID bigint
    IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
    CREATE TABLE [dbo].[AutoAudit]
    ( [AuditID] bigint identity,
    [AuditDate] DateTime,
    [AuditUserName] varchar(128),
    [TableName] varchar(128) NULL,
    [OldContent] XML NULL,
    [NewContent] XML NULL
    ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
    PK_AutoAudit PRIMARY KEY CLUSTERED
    [AuditID]
    ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
    ( [TableName] ASC,
    [AuditDate] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    END
    Select * Into #AuditDeleted from deleted
    Select * Into #AuditInserted from inserted
    While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
    Begin
    INSERT INTO [dbo].[AutoAudit]
    ( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
    SELECT
    GETDATE(),
    SUSER_NAME(),
    [TableName]=object_name([parent_obj]),
    [OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
    [NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
    FROM sysobjects
    WHERE
    [xtype] = 'tr'
    and [name] = OBJECT_NAME(@@PROCID)
    Set @v_AuditID = SCOPE_IDENTITY()
    Delete from AutoAudit
    Where AuditID = @v_AuditID
    AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
    Delete top(1) from #AuditDeleted
    Delete top(1) from #AuditInserted
    End
    END

  • Access migration - handling really silly field and table names

    Hi All,
    I'm working through migrating an ** interesting ** Access database that has been hacked together over the years by a number of ... talented amateurs.
    I've noticed a difference in the way the migration wizard translates some of the really silly names it's got, between creating the table script and creating view scripts.
    It seems to manage the silliness better when creating the tables, but it doesn't quite catch up when creating the views.
    For example the main table in this application is called (believe it or not):
    "T - This Appn Detail - MAIN TABLE"
    Note that it's 33 characters long as well as including spaces and hyphens.
    The table creation script creates a table called T___This Appn_Detail___MAIN_TA (which works)
    But the translation of a query off this table to a view is looking for a table named T___This Appn_Detail___MAIN_TABL
    Which is (a) different and (b) too long
    It does a similar thing with our exciting field names. We have a field in the Access database called "Net Rate (twin share)"
    The table script calls this "Net Rate _twin share_" but the view script sticks with "Net Rate (twin share)" - which causes "FROM keyword not found where expected"
    Does anyone know if there's a way to nudge the view creation process in the right direction?
    I guess the most sensible thing is to go into Access and correct the field names, but I don't want to spend a great deal of time updating the Access database so all the references to the fields get fixed, when I'm about to ditch it anyway.
    Thanks,
    Greg H

    Hi Greg,
    The Access SQL translator should be referencing the SQL Developer Migration Workbench repository to find the correct migrated name of your tables, columns. Thereby producing PL/SQL which references the correct table name. :(
    I have logged this as a bug to be fixed in our next release.
    6647344: ACCESS VIEW TRANSLATION REFERENCES OLD OR INCORRECT TABLE NAMES
    I can try and replicate your issues as described, but would it be possible for you to send in your access databases so we can test it here?
    You may delete the data if you wish, its the schema of the database I'm interested in.
    Unfortunately this is not an offer to complete the migration :)
    But it would better help us understand the exact issues you are experiencing and help us better our product.
    Thanks
    Dermot.
    Message was edited by:
    dooneill

  • Help needed in making table name and column name dynamic

    please check the below query? in the below message
    Message was edited by:
    460425
    Message was edited by:
    460425

    thanks Dmytro,
    below is the script i was looking for it got it..any way thanks.
    just need to replace dbms_output.put_line with utl_file.put_line
    to put the code on server directory.
    and execute as and when required.
    Reg.
    AAK
    CREATE OR REPLACE PROCEDURE p_ad_log
    IS
         CURSOR tbl_cursor IS
              SELECT table_name FROM user_tables WHERE table_name IN('EMP','EMP1') ;
         CURSOR col_cursor( cp_table_name varchar2) IS
              SELECT column_name FROM user_tab_columns WHERE table_name=cp_table_name;
         --v_file_handle      utl_file.file_type;
         --v_file_dir          varchar2(30)      :=     'DIRECTORY PATH'     ';
         --v_file_name     varchar2(30)       :=       'AD_TRIGGER_TEXT.TXT';
         tbl_cursor_value     tbl_cursor%ROWTYPE;
         col_cursor_value     col_cursor%ROWTYPE;
         v_string          varchar2(4000);
         v_string_val     varchar2(4000);
    BEGIN
         DELETE audit_triggers_status;
         COMMIT;
         --v_file_handle := utl_file.fopen(v_file_dir,v_file_name,'W',32000);
         OPEN tbl_cursor;
         LOOP
              FETCH tbl_cursor into tbl_cursor_value;
              EXIT WHEN tbl_cursor%NOTFOUND;
              OPEN col_cursor(tbl_cursor_value.table_name);
              DBMS_OUTPUT.PUT_LINE( 'CREATE OR REPLACE TRIGGER' ||' ad_'||tbl_cursor_value.table_name); -- short name for audit trigger coz table name will be appended to it and result should not exceed 30 char
              DBMS_OUTPUT.PUT_LINE( 'BEFORE INSERT OR UPDATE OR DELETE ON '||tbl_cursor_value.table_name);
              DBMS_OUTPUT.PUT_LINE( 'FOR EACH ROW');
              DBMS_OUTPUT.PUT_LINE( 'BEGIN');
              v_string:='INSERT INTO'||' ad_'||tbl_cursor_value.table_name||'(';
              v_string_val:='values(';
              INSERT INTO audit_triggers_status( table_name,trigger_name,audit_flag) VALUES (tbl_cursor_value.table_name,' ad_'||tbl_cursor_value.table_name,'Y');
                   LOOP
                        FETCH col_cursor into col_cursor_value;
                        EXIT WHEN col_cursor%NOTFOUND;
                        v_string:=v_string||col_cursor_value.column_name||',';
                        v_string_val:=v_string_val||':new.'||col_cursor_value.column_name||',';
                   END LOOP;
                   CLOSE COL_CURSOR;
              v_string:=substr(v_string,1,length(v_string)-1);
              v_string_val:=substr(v_string_val,1,length(v_string_val)-1);
              v_string:=v_string||') ';
              v_string_val:=v_string_val||');';
              --DBMS_OUTPUT.PUT_LINE(v_string||v_string_val);
              DBMS_OUTPUT.PUT_LINE('IF INSERTING THEN');
              DBMS_OUTPUT.PUT_LINE('     '||v_string||v_string_val);
              DBMS_OUTPUT.PUT_LINE('END IF;');
              DBMS_OUTPUT.PUT_LINE('IF UPDATING THEN');
              DBMS_OUTPUT.PUT_LINE('     '||v_string||v_string_val);
              DBMS_OUTPUT.PUT_LINE('END IF;');
              DBMS_OUTPUT.PUT_LINE('IF DELETING THEN');
              --DBMS_OUTPUT.PUT_LINE('     '||v_string||REPLACE(v_string_val,':new.',':old.');
              V_STRING_VAL:=REPLACE(v_string_val,':new.',':old.');
              DBMS_OUTPUT.PUT_LINE('     '||v_string||v_string_val);
              DBMS_OUTPUT.PUT_LINE('END IF;');
              DBMS_OUTPUT.PUT_LINE('END '||' ad_'||tbl_cursor_value.table_name||';');
              DBMS_OUTPUT.PUT_LINE(' ');
         END LOOP;
         CLOSE TBL_CURSOR;
         COMMIT;
    END;

  • BRIDGE statement in a loop : dynamic destination and source table names ...

    Hello,
    I can't find the right syntax to do what I need, if it's possible :
    Context :
    I work actualy on a migration from MS Access applications to Oracle (datas only). So I copied all MS Access Tables into Oracle and created manualy all the relationnal constraints like primary and foreign keys ('cause constraints are not included in 'Copy to Oracle').
    I Have often to refresh my datas, because the MS access applications are still in use. Therefore I wrote PL/SQL scripts. They do the folowing, using dynamic SQL with 'Execute Immediate' statement :
    Script 1
    - disable all user's constraints
    - disable all user's triggers
    - truncate all user's tables
    (Here, I have to do a manual copy of all MS Access tables to Oracle, checking the Append check-box, because the BRIDGE statement doesn't support 'Execute Immediate', and wait...)
    Script 2
    - enable all user's constraints
    - enable all user's triggers
    Could someone let me know how Il could do the same as :
    For t in (select table_name from user_tables) loop
    -- Copy the datas from an Access table into the same Oracle table
    execute immediate ('BRIDGE ' || t.table_name || ' AS MyAccessConnName(select * from ' || t.table_name || ') APPEND') ;
    -- News flash ...
    dbms_output.put_line('Table ' || t.table_name || ' filled') ;
    end loop;
    -------------------------------------------------------------------------------------------------------------------------- ==> 00900. 00000 - "invalid SQL statement"
    If a dynamic table name substitution is applicable in the Bridge statement from a query, I take it with joice!
    Thank you for helping me...
    Daniel

    Hi Daniel,
    The BRIDGE statement is just an extra command I implemented in the SQL Developer worksheet script runner.
    It gets interpreted by SQL Developer and it dynamically creates (CREATE TABLE , INSERT INTO , SELECT ... ) statements and runs them against the connections specified.
    It was developed to improve certain migration features of SQL Developer. We haven't really spent any time developing it into a customer friendly statement to be used in custom scripts.
    Hence the lack of doc. But it is there and if you can make it work for yourself all the better.
    When I say "One way of doing what you want". I mean I haven't thought about your particular problem exhaustively and I wouldn't want you to take my solution as gospel :)
    If you are happy running a script in SQL Developer, but would rather not run 2 scripts , or cut and paste results around, you could SPOOL the results and execute them.
    --call your other scripts to disable constraints during the data move
    set echo off;
    set feedback off;
    set linesize 1000;
    set pagesize 0;
    set headsep off;
    set termout off;
    set verify off;
    set heading off;
    SET PAGES 0;
    SET HEAD OFF;
    spool c:\mydynamicscript.sql
    select 'BRIDGE ' || table_name || ' AS MyAccessConnName(select * from ' || table_name||');' from user_tables ;
    spool off
    @c:\mydynamicscript.sql
    --call another script to enable your constraints again
    Regards,
    Dermot.
    SQL Developer Team.

  • Cannot change table-name in persistent.xml

    I've successful deployed a Entity EJB on "SAP Enterprise Portal 6.0 SP4 NetWeaver Developer Sneak Preview"
    After changing the Table Name in persistent.xml and re-deploying the new EAR, the Entity EJB still writes to the old table.
    How can I get SAP Web AS to accept the new persistent.xml/persistent-ejb-map/entity-beans/entity-bean/table-name entry ?
    I've already tried:
    1) Re-deploy EAR and re-boot the server
    2) Delete all old copies of EAR directories and temporary files, reboot and re-deploy.
    Note: Expanding new EAR confirms that persistent.xml/table-name has been updated on the SAP Web AS.  However, EJB still writes to the old table.
    Alton

    In Web AS 6.40 the application data is stored in the database, therefore it is restored even if you delete the folders in the file system.
    To undeploy the application, you can use the Deploy Service runtime in Visual Administrator. Start the Visual Administrator using the <i>go</i> script file in <drive>:\usr\sap\<SID>\JC00\j2ee\admin. Then expand the <i>Services</i> tree under the server node, and choose <i>Deploy</i>. On the right-hand side of the screen switch to <i>Application</i> view, select your application, and choose <i>Remove</i>.
    Zornitsa

  • How to Find what are tables and "Table Name" in particular "Data File"

    hi Team,
    I have one database that database 300 gb size , this database having 6 ndf files ,
    here How to Find  what are the tables and  "Table Name"  in particular "Data File"[.ndf]

    Hi,
    In addition to Prashanth’s suggestion, you can also use the following Transact-SQL statements to get more detailed information including  all objects and indexes per Filegroup / Partition and allocated data size of databases.
    The script can work with Microsoft SQL Server 2005 and higher version in all Editions. For more details, please review this article:
    List all Objects and Indexes per Filegroup / Partition.
    -- List all Objects and Indexes
    -- per Filegroup / Partition and Allocation Type
    -- including the allocated data size
    SELECT DS.name AS DataSpaceName
    ,AU.type_desc AS AllocationDesc
    ,AU.total_pages / 128 AS TotalSizeMB
    ,AU.used_pages / 128 AS UsedSizeMB
    ,AU.data_pages / 128 AS DataSizeMB
    ,SCH.name AS SchemaName
    ,OBJ.type_desc AS ObjectType
    ,OBJ.name AS ObjectName
    ,IDX.type_desc AS IndexType
    ,IDX.name AS IndexName
    FROM sys.data_spaces AS DS
    INNER JOIN sys.allocation_units AS AU
    ON DS.data_space_id = AU.data_space_id
    INNER JOIN sys.partitions AS PA
    ON (AU.type IN (1, 3)
    AND AU.container_id = PA.hobt_id)
    OR
    (AU.type = 2
    AND AU.container_id = PA.partition_id)
    INNER JOIN sys.objects AS OBJ
    ON PA.object_id = OBJ.object_id
    INNER JOIN sys.schemas AS SCH
    ON OBJ.schema_id = SCH.schema_id
    LEFT JOIN sys.indexes AS IDX
    ON PA.object_id = IDX.object_id
    AND PA.index_id = IDX.index_id
    WHERE OBJ.type_desc='USER_TABLE'-- add this WHERE clause to display the information of user tables
    ORDER BY DS.name
    ,SCH.name
    ,OBJ.name
    ,IDX.name
    Thanks,
    Lydia Zhang

  • Can the table name in a cursor be parameterized?

    I would like to do the following in pl/sql
    Procedure my_proc ( varchar2 table_name) is
    CURSOR my_cursor ( table_name VARCHAR2 ) IS SELECT some_column FROM table_name ;
    i.e. parameterize the table name. I know it is possible to parameterize the SELECT cause by doing the above but, as written, my example will not compile. So, I'm wondering if it is even possible to create a cursor like this.
    Thanks for any help/advice,
    -=beeky

    I wanted to add that I have no control over the database design. The reason I want to parameterize a cursor is to allow a single procedure to do exactly the same thing to six tables. These tables contain data for different geographic regions and are supplied by an outside party. My script essentially merges these tables into our relational model.
    Thanks again to all who replied,
    -=beeky

  • Petstore install problem on Derby and Mysql (Linux) - Upper case table name

    Hi
    I seem to have a problem which may also be at the heart of many threads here - the tables are created in lower case yet referenced in UPPER CASE.
    If the DB is case sensitive, the tables arent found.
    does anyone have an UPPER CASED VERSION OF THE SETUP SCRIPT ????
    1) setup/sql/javadb/petstore.sql contains all table and field names in lower case
    in Netbeans look under ServerResources/sql
    i.e.
    create table tag(
    tagid INTEGER NOT NULL,
    tag VARCHAR(30) NOT NULL,
    refcount INTEGER NOT NULL,
    primary key (tagid),
    unique(tag)
    2) the petstore app tries to access using CAPITALISED NAMES
    i.e.
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: org.apache.derby.client.am.SqlException: Schema 'PETSTORE' does not existError Code: -1
    Call:SELECT TAGID, REFCOUNT, TAG FROM TAG ORDER BY REFCOUNT DESC, TAG ASC
    Query:ReportQuery(com.sun.javaee.blueprints.petstore.model.Tag)
    at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
    3) In mysql, the table names are .......
    mysql> describe tag;
    --------------------------------------------------+
    | Field | Type | Null | Key | Default | Extra |
    --------------------------------------------------+
    | tagid | int(11) | NO | PRI | | |
    | tag | varchar(30) | NO | UNI | | |
    | refcount | int(11) | NO | | | |
    --------------------------------------------------+
    3 rows in set (0.02 sec)
    I HATE DBAs THAT ONLY KNOW HOW TO SHOUT :-)
    chris

    Here is a replacement of the offender - have fun
    create table CATEGORY(
    CATEGORYID VARCHAR(10) NOT NULL,
    NAME VARCHAR(25) NOT NULL,
    DESCRIPTION VARCHAR(255) NOT NULL,
    IMAGEURL VARCHAR(55),
    primary key (CATEGORYID)
    CREATE TABLE PRODUCT (
    PRODUCTID VARCHAR(10) NOT NULL,
    CATEGORYID VARCHAR(10) NOT NULL,
    NAME VARCHAR(25) NOT NULL,
    DESCRIPTION VARCHAR(255) NOT NULL,
    IMAGEURL VARCHAR(55),
    primary key (PRODUCTID),
    foreign key (CATEGORYID) references CATEGORY(CATEGORYID)
    CREATE TABLE ADDRESS (
    ADDRESSID VARCHAR(10) NOT NULL,
    STREET1 VARCHAR(55) NOT NULL,
    STREET2 VARCHAR(55),
    CITY VARCHAR(55) NOT NULL,
    STATE VARCHAR(25) NOT NULL,
    ZIP VARCHAR(5) NOT NULL,
    LATITUDE DECIMAL(14,10) NOT NULL,
    LONGITUDE DECIMAL(14,10) NOT NULL,
    primary key (ADDRESSID)
    CREATE TABLE SELLERCONTACTINFO (
    CONTACTINFOID VARCHAR(10) NOT NULL,
    LASTNAME VARCHAR(24) NOT NULL,
    FIRSTNAME VARCHAR(24) NOT NULL,
    EMAIL VARCHAR(24) NOT NULL,
    primary key (CONTACTINFOID)
    CREATE TABLE ITEM (
    ITEMID VARCHAR(10) NOT NULL,
    PRODUCTID VARCHAR(10) NOT NULL,
    NAME VARCHAR(30) NOT NULL,
    DESCRIPTION VARCHAR(500) NOT NULL,
    IMAGEURL VARCHAR(55),
    IMAGETHUMBURL VARCHAR(55),
    PRICE DECIMAL(14,2) NOT NULL,
    ADDRESS_ADDRESSID VARCHAR(10) NOT NULL,
    CONTACTINFO_CONTACTINFOID VARCHAR(10) NOT NULL,
    TOTALSCORE INTEGER NOT NULL,
    NUMBEROFVOTES INTEGER NOT NULL,
    DISABLED INTEGER NOT NULL,
    primary key (ITEMID),
    foreign key (ADDRESS_ADDRESSID) references ADDRESS(ADDRESSID),
    foreign key (PRODUCTID) references PRODUCT(PRODUCTID),
    foreign key (CONTACTINFO_CONTACTINFOID) references SELLERCONTACTINFO(CONTACTINFOID)
    CREATE TABLE ID_GEN (
    GEN_KEY VARCHAR(20) NOT NULL,
    GEN_VALUE INTEGER NOT NULL,
    primary key (GEN_KEY)
    CREATE TABLE ZIPLOCATION (
    ZIPCODE INTEGER NOT NULL,
    CITY VARCHAR(30) NOT NULL,
    STATE VARCHAR(2) NOT NULL,
    primary key (ZIPCODE)
    create table TAG(
    TAGID INTEGER NOT NULL,
    TAG VARCHAR(30) NOT NULL,
    REFCOUNT INTEGER NOT NULL,
    primary key (TAGID),
    unique(TAG)
    create table TAG_ITEM(
    TAGID INTEGER NOT NULL,
    ITEMID VARCHAR(10) NOT NULL,
    unique(TAGid, ITEMID),
    foreign key (ITEMID) references ITEM(ITEMID),
    foreign key (TAGID) references TAG(TAGID)
    INSERT INTO CATEGORY VALUES('CATS', 'Cats', 'Loving and finicky friends', 'cats_icon.gif');
    INSERT INTO CATEGORY VALUES('DOGS', 'Dogs', 'Loving and furry friends', 'dogs_icon.gif');
    INSERT INTO CATEGORY VALUES('BIRDS', 'Birds', 'Loving and feathery friends', 'birds_icon.gif');
    INSERT INTO CATEGORY VALUES('REPTILES', 'Reptiles', 'Loving and scaly friends', 'reptiles_icon.gif');
    INSERT INTO CATEGORY VALUES('FISH', 'Fish', 'Loving aquatic friends', 'fish_icon.gif');
    INSERT INTO PRODUCT VALUES('feline01', 'CATS', 'Hairy Cat', 'Great for reducing mouse populations', 'cat1.gif');
    INSERT INTO PRODUCT VALUES('feline02', 'CATS', 'Groomed Cat', 'Friendly house cat keeps you away from the vacuum', 'cat2.gif');
    INSERT INTO PRODUCT VALUES('canine01', 'DOGS', 'Medium Dogs', 'Friendly dog from England', 'dog1.gif');
    INSERT INTO PRODUCT VALUES('canine02', 'DOGS', 'Small Dogs', 'Great companion dog to sit on your lap','dog2.gif');
    INSERT INTO PRODUCT VALUES('avian01', 'BIRDS', 'Parrot', 'Friend for a lifetime.', 'bird1.gif');
    INSERT INTO PRODUCT VALUES('avian02', 'BIRDS', 'Exotic', 'Impress your friends with your colorful friend.','bird2.gif');
    INSERT INTO PRODUCT VALUES('fish01', 'FISH', 'Small Fish', 'Fits nicely in a small aquarium.','fish2.gif');
    INSERT INTO PRODUCT VALUES('fish02', 'FISH', 'Large Fish', 'Need a large aquarium.','fish3.gif');
    INSERT INTO PRODUCT VALUES('reptile01', 'REPTILES', 'Slithering Reptiles', 'Slides across the floor.','lizard1.gif');
    INSERT INTO PRODUCT VALUES('reptile02', 'REPTILES', 'Crawling Reptiles', 'Uses legs to move fast.','lizard2.gif');
    INSERT INTO ADDRESS VALUES('1', 'W el Camino Real & Castro St', '', 'Mountain View','CA','94040',37.38574,-122.083973);
    INSERT INTO ADDRESS VALUES('2', 'Shell Blvd & Beach Park Blvd', '', 'Foster CITY','CA','94404',37.546935,-122.263978);
    INSERT INTO ADDRESS VALUES('3', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('4', 'S 1st St & W Santa Clara St', '', 'San Jose','CA','95113',37.336141,-121.890666);
    INSERT INTO ADDRESS VALUES('5', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
    INSERT INTO ADDRESS VALUES('6', 'Paseo Padre Pky & Fremont Blvd', '', 'Fremont','CA','94555',37.575035,-122.041273);
    INSERT INTO ADDRESS VALUES('7', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
    INSERT INTO ADDRESS VALUES('8', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
    INSERT INTO ADDRESS VALUES('9', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
    INSERT INTO ADDRESS VALUES('10', 'W el Camino Real & Hollenbeck Ave', '', 'Sunnyvale','CA','94087',37.369941,-122.041271);
    INSERT INTO ADDRESS VALUES('11', 'S Main St & Serra Way', '', 'Milpitas','CA','95035',37.428112,-121.906505);
    INSERT INTO ADDRESS VALUES('12', 'Great Mall Pky & S Main St', '', 'Milpitas','CA','95035',37.414722,-121.902085);
    INSERT INTO ADDRESS VALUES('13', 'Valencia St & 16th St', '', 'San Francisco','CA','94103',37.764985,-122.421886);
    INSERT INTO ADDRESS VALUES('14', 'S 1st St & W Santa Clara St', '', 'San Jose','CA','95113',37.336141,-121.890666);
    INSERT INTO ADDRESS VALUES('15', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
    INSERT INTO ADDRESS VALUES('16', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
    INSERT INTO ADDRESS VALUES('17', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
    INSERT INTO ADDRESS VALUES('18', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
    INSERT INTO ADDRESS VALUES('19', 'S Main St & Serra Way', '', 'Milpitas','CA','95035',37.428112,-121.906505);
    INSERT INTO ADDRESS VALUES('20', '24th St & Dolores St', '', 'San Francisco','CA','94114',37.75183,-122.424982);
    INSERT INTO ADDRESS VALUES('21', 'Great Mall Pky & S Main St', '', 'Milpitas','CA','95035',37.414722,-121.902085);
    INSERT INTO ADDRESS VALUES('22', 'Grant Rd & South Dr ', '', 'Mountain view','CA','94040',37.366941,-122.078073);
    INSERT INTO ADDRESS VALUES('23', '25th St & Dolores St', '', 'San Francisco','CA','94114',37.75013,-122.424782);
    INSERT INTO ADDRESS VALUES('24', 'Ellis St & National Ave', '', 'Mountain view','CA','94043',37.40094,-122.052272);
    INSERT INTO ADDRESS VALUES('25', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
    INSERT INTO ADDRESS VALUES('26', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
    INSERT INTO ADDRESS VALUES('27', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('28', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('29', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('30', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
    INSERT INTO ADDRESS VALUES('31', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('32', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
    INSERT INTO ADDRESS VALUES('33', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
    INSERT INTO ADDRESS VALUES('34', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO ADDRESS VALUES('35', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
    INSERT INTO ADDRESS VALUES('36', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
    INSERT INTO ADDRESS VALUES('37', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
    INSERT INTO ADDRESS VALUES('38', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
    INSERT INTO ADDRESS VALUES('39', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('40', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('41', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('42', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
    INSERT INTO ADDRESS VALUES('43', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('44', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
    INSERT INTO ADDRESS VALUES('45', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
    INSERT INTO ADDRESS VALUES('46', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO ADDRESS VALUES('47', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
    INSERT INTO ADDRESS VALUES('48', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
    INSERT INTO ADDRESS VALUES('49', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
    INSERT INTO ADDRESS VALUES('50', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
    INSERT INTO ADDRESS VALUES('51', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('52', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('53', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('54', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
    INSERT INTO ADDRESS VALUES('55', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('56', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
    INSERT INTO ADDRESS VALUES('57', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
    INSERT INTO ADDRESS VALUES('58', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO ADDRESS VALUES('59', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
    INSERT INTO ADDRESS VALUES('60', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
    INSERT INTO ADDRESS VALUES('61', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
    INSERT INTO ADDRESS VALUES('62', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('63', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('64', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('65', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
    INSERT INTO ADDRESS VALUES('66', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('67', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
    INSERT INTO ADDRESS VALUES('68', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
    INSERT INTO ADDRESS VALUES('69', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO ADDRESS VALUES('70', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
    INSERT INTO ADDRESS VALUES('71', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
    INSERT INTO ADDRESS VALUES('72', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
    INSERT INTO ADDRESS VALUES('73', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('74', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('75', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('76', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
    INSERT INTO ADDRESS VALUES('77', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('78', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
    INSERT INTO ADDRESS VALUES('79', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
    INSERT INTO ADDRESS VALUES('80', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO ADDRESS VALUES('81', 'Grant Rd & South Dr ', '', 'Mountain view','CA','94040',37.366941,-122.078073);
    INSERT INTO ADDRESS VALUES('82', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
    INSERT INTO ADDRESS VALUES('83', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
    INSERT INTO ADDRESS VALUES('84', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('85', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('86', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('87', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
    INSERT INTO ADDRESS VALUES('88', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('89', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
    INSERT INTO ADDRESS VALUES('90', 'Paseo Padre Pky & Fremont Blvd', '', 'Fremont','CA','94555',37.575035,-122.041273);
    INSERT INTO ADDRESS VALUES('91', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO ADDRESS VALUES('92', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
    INSERT INTO ADDRESS VALUES('93', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
    INSERT INTO ADDRESS VALUES('94', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
    INSERT INTO ADDRESS VALUES('95', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
    INSERT INTO ADDRESS VALUES('96', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
    INSERT INTO ADDRESS VALUES('97', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
    INSERT INTO ADDRESS VALUES('98', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
    INSERT INTO ADDRESS VALUES('99', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
    INSERT INTO ADDRESS VALUES('100', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
    INSERT INTO ADDRESS VALUES('101', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
    INSERT INTO ADDRESS VALUES('102', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
    INSERT INTO SELLERCONTACTINFO VALUES('1', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('2', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('3', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('4', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('5', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('6', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('7', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('8', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('9', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('10', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('11', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('12', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('13', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('14', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('15', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('16', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('17', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('18', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('19', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('20', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('21', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('22', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('23', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('24', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('25', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('26', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('27', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('28', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('29', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('30', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('31', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('32', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('33', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('34', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('35', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('36', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('37', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('38', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('39', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('40', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('41', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('42', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('43', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('44', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('45', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('46', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('47', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('48', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('49', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('50', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('51', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('52', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('53', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('54', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('55', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('56', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('57', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('58', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('59', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('60', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('61', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('62', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('63', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('64', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('65', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('66', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('67', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('68', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('69', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('70', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('71', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('72', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('73', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('74', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('75', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('76', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('77', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('78', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('79', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('80', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('81', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('82', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('83', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('84', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('85', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('86', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('87', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('88', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('89', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('90', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('91', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('92', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('93', 'Basler', 'Mark', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('94', 'Yoshida', 'Yutaka', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('95', 'Kangath', 'Smitha', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('96', 'Freeman', 'Larry', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('97', 'Kaul', 'Jeet', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('98', 'Burns', 'Ed', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('99', 'McClanahan', 'Craig', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('100', 'Murray', 'Greg', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('101', 'Brydon', 'Sean', '[email protected]');
    INSERT INTO SELLERCONTACTINFO VALUES('102', 'Singh', 'Inderjeet', '[email protected]');
    INSERT INTO ITEM VALUES('1', 'feline01', 'Friendly Cat', 'This black and white colored cat is super friendly. Anyone passing by your front yard will find him puring at their feet and trying to make a new friend. His NAME is Anthony, but I call him Ant as a nickNAME since he loves to eat ants and other insects.', 'images/anthony.jpg','images/anthony-s.jpg', 307.10,'1','1', 15, 3, 0);
    INSERT INTO ITEM VALUES('2', 'feline01', 'Fluffy Cat', 'A great pet for a hair stylist! Have fun combing Bailey''s silver mane. Maybe trim his whiskers? He is very patient and loves to be pampered.', 'images/bailey.jpg','images/bailey-s.jpg', 307,'2','2', 15, 5, 0);
    INSERT INTO ITEM VALUES('3', 'feline02', 'Sneaky Cat', 'My cat is so sneaky. He is so curious that he just has to poke his nose into everything going on in the house. Everytime I turn around, BAM, he is in the room peaking at what I am doing. Nothing escapes his keen eye. He should be a spy in the CIA!', 'images/bob.jpg','images/bob-s.jpg', 307.20,'3','3', 15, 7, 0);
    INSERT INTO ITEM VALUES('4', 'feline02', 'Lazy Cat', 'A great pet to lounge on the sofa with. If you want a friend to watch TV with, this is the cat for you. Plus, she wont even ask for the remote! Really, could you ask for a better friend to lounge with?', 'images/chantelle.jpg','images/chantelle-s.jpg', 307.30,'4','4', 15, 5, 0);
    INSERT INTO ITEM VALUES('5', 'feline01', 'Old Cat', 'A great old pet retired from duty in the circus. This fully-trained tiger is looking for a place to retire. Loves to roam free and loves to eat other animals.', 'images/charlie.jpg','images/charlie-s.jpg', 307,'5','5', 15, 5, 0);
    INSERT INTO ITEM VALUES('6', 'feline02', 'Young Female cat', 'A great young pet to chase around. Loves to play with a ball of string. Bring some instant energy into your home.', 'images/elkie.jpg','images/elkie-s.jpg', 307.40,'6','6', 15, 5, 0);
    INSERT INTO ITEM VALUES('7', 'feline01', 'Playful Female Cat', 'A needy pet. This cat refuses to grow up. Do you like playful spirits? I need lots of attention. Please do not leave me alone, not even for a minute.', 'images/faith.jpg','images/faith-s.jpg', 307,'7','7', 15, 5, 0);
    INSERT INTO ITEM VALUES('8', 'feline01', 'White Fluffy Cat', 'This fluffy white cat looks like a snowball. Plus, she likes playing outside in the snow and it looks really cool to see this snowball cat run around on the ski slopes. I hope you have white carpet as this cat sheds lots of hair.', 'images/gaetano.jpg','images/gaetano-s.jpg', 307.50,'8','8', 15, 15, 0);
    INSERT INTO ITEM VALUES('9', 'feline02', 'Tiger Stripe Cat', 'This little tiger thinks it has big teeth. A great wild pet for an adventurous person. May eat your other pets so be careful- just kidding. This little tiger is affectionate.', 'images/harmony.jpg','images/harmony-s.jpg', 307,'9','9', 15, 3, 0);
    INSERT INTO ITEM VALUES('10', 'feline02', 'Alley Cat', 'Meow Meow in the back alley cat fights! This cat keeps the racoons away, but still has class.', 'images/katzen.jpg','images/katzen-s.jpg', 307.60,'10','10', 15, 5, 0);
    INSERT INTO ITEM VALUES('11', 'feline02', 'Speedy Cat', 'Fastest and coolest cat in town. If you always wanted to own a cheetah, this cat is even faster and better looking. No dog could ever catch this bolt of lightening.', 'images/mario.jpg','images/mario-s.jpg', 307,'11','11', 15, 10, 0);
    INSERT INTO ITEM VALUES('12', 'feline01', 'Stylish Cat', 'A high maintenance cat for an owner with time. This cat needs pampering: comb it hair, brush its teeth, wash its fur, paint its claws. For all you debutantes, let the world know you have arrived in style with this snooty cat in your purse!', 'images/mimi.jpg','images/mimi-s.jpg', 307.70,'12','12', 15, 4, 0);
    INSERT INTO ITEM VALUES('13', 'feline01', 'Smelly Cat', 'A great pet with its own song to sing with your fiends. "Smelly cat, Smelly cat ..." Need an excuse for that funky odor in your house? Smelly cat is the answer.', 'images/monique.jpg','images/monique-s.jpg', 307.80,'13','13', 15, 8, 0);
    INSERT INTO ITEM VALUES('14', 'feline01', 'Saber Cat', 'A great watch pet. Want to keep your roommates from stealing the beer from your refrigerator? This big-toothed crazy cat is better than a watchdog. Just place him on top of the refrigerator and watch him pounce when so-called friends try to sneak a beer. This cat is great fun at parties.', 'images/olie.jpg','images/olie-s.jpg', 307.90,'14','14', 15, 3, 0);
    INSERT INTO ITEM VALUES('15', 'feline01', 'Sophisticated Cat', 'This cat is from Paris. It has a very distinguished history and is looking for a castle to play in. This sophisticated cat has class and taste. No chasing on string, no catnip habits. Only the habits of royalty in this cats blood.', 'images/paris.jpg','images/paris-s.jpg', 307,'15','15', 15, 4, 0);
    INSERT INTO ITEM VALUES('16', 'feline01', 'Princess cat', 'Just beauty and elegance. She will charm you from the moment she enters the room.', 'images/princess.jpg','images/princess-s.jpg', 307,'16','16', 15, 5, 0);
    INSERT INTO ITEM VALUES('17', 'feline02', 'Lazy cat', 'Wow! This cat is cool. It has a beautiful tan coat. I wish I could get a sun tan of that color.', 'images/simba.jpg','images/simba-s.jpg', 307,'17','17', 15, 3, 0);
    INSERT INTO ITEM VALUES('18', 'feline02', 'Scapper male cat', 'A scappy cat that likes to cause trouble. If you are looking for a challenge to your cat training skills, this scapper is the test!', 'images/thaicat.jpg','images/thaicat-s.jpg', 307,'18','18', 15, 5, 0);
    INSERT INTO ITEM VALUES('19', 'feline01', 'Lazy cat', 'Buy me please. I love to sleep.', 'images/cat1.gif','images/cat1.gif', 307,'19','19', 15, 6, 0);
    INSERT INTO ITEM VALUES('20', 'feline01', 'Old Cat', 'A great old pet retired from duty in the circus. This fully-trained tiger is looking for a place to retire. Loves to roam free and loves to eat other animals.', 'images/cat2.gif','images/cat2.gif', 200,'20','20', 15, 3, 0);
    INSERT INTO ITEM VALUES('21', 'feline01', 'Young Cat', 'A great young pet to chase around. Loves to play with a ball of string.', 'images/cat3.gif','images/cat3.gif', 350,'21','21', 15, 3, 0);
    INSERT INTO ITEM VALUES('22', 'feline01', 'Scrappy Cat', 'A real trouble-maker in the neighborhood. Looking for some T.L.

  • SQL Statement error - ORA-00903: invalid table name

    Hi
    I have written a sql script that gets executed from a form within e-business suite. Unfortunately, the script is falling over with an error:
    unknown command beginning "MERGE INTO..." - rest of line ignored.
    unknown command beginning "USING edop..." - rest of line ignored.
    unknown command beginning "ON (elw.ro..." - rest of line ignored.
    unknown command beginning "WHEN MATCH..." - rest of line ignored.
    For a list of known commands enter HELP
    and to leave enter EXIT.
          SET ELW.billed_flag          = t.billed_flag,
    ERROR at line 2:
    ORA-00903: invalid table name the actual statement that is causing the issue is:
    MERGE INTO edopaif.table1 elw
    USING edopaif.tablw2 t
    ON (elw.rowid = t.LOAD_WORKING_ROWID)
    WHEN MATCHED THEN
       UPDATE
          SET ELW.billed_flag          = t.billed_flag,
              ELW.last_bill_generated   = t.last_bill_generated,
              ELW.last_bill_type        = t.last_bill_type,
              ELW.load_month            = t.load_month,
              ELW.BILL_TRANSACTION_ID   = t.bill_transaction_id
    WHEN NOT MATCHED THEN
       INSERT(error_meaning)
       VALUES('ROWID error with ins_ptia');The version of e-business suite that we are using is: 11.5.10.2.
    The version of the Oracle database that we are using is:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    Please note that I am able to successfully run the statement directly connected as the APPS schema in the database - the error only occurs when the script is run from the forms front-end (which is really confusing me).
    Many thanks
    Paul

    Hi
    I've modified the script to include only the statement that is erroring and it still errors when executed from the front end application.
    Next I re-wrote the statement to use PL/SQL instead of the MERGE statement, to do the update, and the script completes succesfully, i.e.:
    DECLARE
       CURSOR cu_lw IS
             SELECT t.billed_flag,
                    t.last_bill_generated,
                    t.last_bill_type,
                    t.load_month,
                    t.bill_transaction_id,
                    t.load_working_rowid
               FROM table2 t;
    BEGIN
       FOR rec_cu_lw IN cu_lw LOOP
          UPDATE table1 elw
             SET ELW.billed_flag           = rec_cu_lw.billed_flag,
              ELW.last_bill_generated      = rec_cu_lw.last_bill_generated,
              ELW.last_bill_type           = rec_cu_lw.last_bill_type,
              ELW.load_month               = rec_cu_lw.load_month,
              ELW.BILL_TRANSACTION_ID      = rec_cu_lw.bill_transaction_id
          WHERE elw.rowid                  = rec_cu_lw.load_working_rowid;
       END LOOP;
    END;
    /I am still unsure as to why the MERGE statement is failing when executed in the front end, but completes in the backend with no issues at all. Obviously I would prefer to use the MERGE statement instead of PL/SQL to do the update.
    Thanks
    Paul

  • Table name issue accessing OATS schema using OBIEE

    We are attempting to integrate OATS 12.1 with OBIEE 11g for reporting purposes and encounter the following error when using the BI Administration tool to update a row count of a physical table or query using the Analysis tool against our target OATS schema. For example:
    There was an error while updating row count for
    "OTM.atg.com".."OTM"."View_Tests":
    [nQSError: 17011] SQL statement execution failed.
    [nQSError: 17001] Oracle Error code: 942, message: ORA-00942:
    table or view does not exist
    at OCI call OCIStmtExecute: select count(*) from
    OTM.View_Tests
    I tried this out with other tables such as "TO_TestCase"
    The reason for this error seems to be that our target schema contains tables that have quotes in the name when the table was created, which I understands enforces the preservation of letter case-- i.e. "Mixed_Case" names. Since this is not "our own" application, we don't really have any control over how the schema is created or the table/views named. Interestingly enough, the table appears in the BI Administration with the expected table columns, but the querying for row count and data fails.
    One way we've worked around this is to manually create a VIEW of the table of interest in the target schema using all capitals. This works, but seems unnecessarily messy, especially if we are interested in using a VIEW that is already created as part of the schema.
    I also found the following various discussions about setting the NQSConfig.ini file on line, but changing the value and restarting the OBIEE server doesn't seem to make a difference.
    # Case sensitivity should be set to match the remote
    # target database.
    CASE_SENSITIVE_CHARACTER_COMPARISON = ON;
    Are there other ways to get OBIEE to recognize mixed-case table names?
    Thanks!

    Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
    The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
    So if a script is, for example, to create a schema, it should look something as follows:
    -- usage: create-schema.sql <schema_name>
    set verify off
    set define on
    create user &1 identified by .. default tablespace .. quota ... ;
    grant ... to &1;
    --eof
    If script 1 wants to call it direct then:
    -- script 1
    @create-schema SCOTT
    If script 2 want to call it using an existing variable:
    -- script 2
    @create-schema &SCHEMA
    Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots.

  • Parse SQL: How to extract column names, table names from a SQL query

    Hi all,
    I have a requirement wherein a SQL query will be given in a text file.
    The text file has to be read (probably using text_io package), the SQL query needs to be parsed and the column names, table names and where clauses have to be extracted and inserted into separate tables.
    Is there a way to do it using PL/SQL ?
    Is there a PL/SQL script available to parse and extract column names, table names etc ?
    Pls help.
    Regards,
    Sam

    I think I jumped to conclusion too early saying it is completely possible and straight forward. But after reading through your post for one more time I realised you are not interested only in the column_names, also the table_names and the predicates .
    >
    SQL query needs to be parsed and the column names
    >
    The above is possible and straight forward using the dbms_sql package.
    I am pasting the same information as I did in the other forum.
    Check this link and search for Example 8 and .
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#sthref6136
    Also check the working example from asktom
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1035431863958
    >
    table names and where clauses have to be extracted
    >
    Now this is the tricky bit. You can extract the list of tables by getting the sql_id from v$sql and joining it with v$sql_plan. But sometimes you may not get all the results because the optimizer may choose to refine your query (check this link)
    http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html
    and you can get the predicate information from the same table v$sql_plan but I will leave that area for you to do some R&D.
    Regards
    Raj
    Edited by: R.Subramanian on Dec 10, 2008 3:14 AM

  • Table names in generated stored procs are qualified with sa schema name

    I am using OMW 9.2.0.1.2 with the 9.2.0.1.3 SQL Serevr plugin to help with a SQL Server 7 to Oracle 9.2.0.1 migration on NT.
    As is common with SQL Server databases, the dbo is sa. I don't want my Oracle schema to be called sa. I have succesfully gotten around this by renaming the sa user in the Oracle model in OMW.
    However, the stored procedure code that OMW generates has table names qualified with sa as the schema (the tables names in the original T/SQL procs were not qualified).
    How can I stop OMW from generating table names qualified with sa?
    Thanks.

    Hi,
    this is a bug in the OMWB. As a workaround, you can generate the migration scripts (see reference guide and user guide for more information) from the OMWB Oracle Model and then edit these scripts to ensure that the 'sa' prefix does not appear in the text of the stored procedures. Then use these scripts to generate the schema in your database.
    An alternative is to migrate the stored procedures, schema and data over to the Oracle database using OMWB and then open each procedure in Enterprise Manager, remove the references to the 'sa' prefix and re-compile the procedure.
    I will keep you updated on the release this fix will appear in.
    I hope this helps,
    Tom.

Maybe you are looking for