User Profile

Collapse

Profile Sidebar

Collapse
jsmithstl
jsmithstl
Last Activity: Oct 29 '10, 08:57 AM
Joined: Jun 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jsmithstl
    replied to update
    can you post the description of each table. Are you trying to update the lotno_id column in both tables? Is lotno_id a primary key or foreign key in either table?
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to How to connect with rman
    Once you put the entries in your lsnrctl.ora file, did you stop and restart the listener?

    lsnrctl stop
    lsnrctl start

    Once you've restarted the listener, do as Prabukrishnan suggested. Run the following from the command line and paste the output in here.

    lsnrctl services

    Also, can you paste the contents of your sqlnet.ora file as well?
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to How to connect with rman
    make sure your environment is setup correctly.

    set your ORACLE_SID to the database you wish to connect to:

    export ORACLE_SID=BSNL

    rman
    connect target /
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to Shell script quoting and line read line
    Can you put an example of what your want your output to look like? How big is your software.csv file? Do you have to write this in sh or is perl an option?
    See more | Go to post

    Leave a comment:


  • I'm not sure I understand. It sounds like each column represents a week and there are 104 weeks but week 1 in table 2 compares to week 2 in table 1.

    Can you do a describe of each table and post them?

    What is it you are trying to accomplish? It sounds like a different table design might help. Are you able to change the design or do you have no choice but to use this design?
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to Help in this SQL
    Assuming the AMOUNT is a number column.....

    SQL> select * from cumtemp;

    ID AMOUNT
    ---------- ----------
    1 100
    2 150
    3 170
    4 200
    5 200
    6 240
    7 280
    8 343
    9 354
    10 390
    ...
    See more | Go to post
    Last edited by debasisdas; Aug 20 '09, 09:37 AM. Reason: added code tags

    Leave a comment:


  • jsmithstl
    replied to Oracle Query problem...
    I've used "break on" since version 7. Are you using sqlplus or do you need to run this in a different query tool?
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to Oracle Query problem...
    Sorry... trying to get the output to look proper on this site. Hopefully, this will show you what the ouput should look like when you use the break statement.

    OWNER TABLE_NAME
    ------------------------ -----------------------------
    SYS AUDIT_ACTIONS
    AW$AWCREATE
    OLAP_OLEDB_MDPR OPVALS
    PLAN_TABLE$
    ...
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to Oracle Query problem...
    just add a break statement.

    --
    -- without a break statement
    --
    select owner
    ,table_name
    from all_tables
    where owner in ('SYS','SYSTEM' )
    order by owner
    ,table_name

    OWNER TABLE_NAME
    ------------------------ -----------------------------
    SYS AUDIT_ACTIONS
    SYS ...
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to can't see the hebrew character
    What is your database characterset? If it's US7ASCII, it can't support those characters. If the characterset your using doesn't support those characters, oracle replaces them with and inverted ?. I would suggest using AL32UTF8 or UTF8. Also, make sure you set your NLS_LANG environment variable correctly. It should match the characterset the data you are inserting was created it. NLS_LANG tells the database what language you are sending it so...
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to Update table from Flat file
    I would:

    1. create an oracle directory.
    2. put your flat file in that directory.
    3. create an external table using the flat file.
    4. use a MERGE INTO statement to update the table.

    MERGE INTO allows you to update a row if it exists or insert the row if it doesn't. As of 10g, you can even delete rows using MERGE INTO.
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to tns Problem
    Check the NAMES.DEFAULT_D OMAIN in your sqlnet.ora file. If for instance in the sqlnet.ora file you have:

    NAMES.DEFAULT_D OMAIN= corp.company.co m

    Then your tnsnames.ora entry should look like:

    stl_dr.corp.com pany.com = ...

    Additionally, I'm pretty certain Oracle recommends you use SERVICE_NAME instead of SID in the tnsnames.ora entry for 9i and up.

    If you'll go to the...
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to query optimisation
    Statistics have no bearing when OPTIMIZER = RULE Change your OPTIMIZER to COST or CHOOSE then Oracle will use the statistics gathered through the analyze command or better yet use the dbms_stats package.
    See more | Go to post

    Leave a comment:


  • jsmithstl
    replied to definition of SID in Oracle
    It depends....

    SID as in ORACLE_SID does indeed = instance name as the link above states.

    SID as in "associated with an oracle session or username", = session identifier.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...