Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: vgg
  • Order by date
  1. vgg

    How can i call one stored procedure from another one in oracle

    Hi Just call it by its name,qualifying with the package name(if it belongs to a package) and passing the arguments(if any). Say you have package pkgA and another pkgB. You can call a procedure procB from procA like this procedure procA(v_arg1 [IN|IN OUT|OUT] data_type1,v_arg2 [IN|IN OUT|OUT]...
  2. vgg

    shorten the script

    Hi, Instead of writing everything in main just have a method and test all your conditions and check for the user's input. If the input is not as specified,display the appropriate message and call the same function again,recursively. VGG
  3. vgg

    increase the performance on a view

    Hi , Here's an example: SELECT /*+ PARALLEL(e,10,DEFAULT) */ ename,sal FROM emp e; Note: 1.The first argument to the PARALLEL hint specifies the alias to the table(is a must). 2.The second argument specifies the degree of parallelism. Can also be DEFAULT. 3.The third argument specifies...
  4. vgg

    increase the performance on a view

    Hi mkey, 1.Analyze the execution of the query using EXPLAIN PLAN and determine which access path and indexes are choosen by the oracle optimizer.(If the operation is FULL TABLE scan ,then it means your optimizer is not considering the indexes you created.just because you created indexes doesn't...
  5. vgg

    Please help me with this:

    Oops!! I left that out.Thanks for the correction justice. VGG
  6. vgg

    Please help me with this:

    Hi, You can even try this. foreach $file (@files) { if(! -d $file) { open (NEWNAME, &quot;head -1 $file&quot;) || die &quot;Cannot open $file:$!&quot;; @rnm = <NEWNAME>; close(NEWNAME); rename &quot;$dir/$file&quot;,&quot;$dir/$rnm[0]&quot;; } }
  7. vgg

    regular expressions

    Yes thats right. Specify the pattern as />/ and check. I am presently not on a PERL assignment so I am helpless in testing the solution. VGG
  8. vgg

    Time

    hi select to_char(sysdate,'DAY fmDDth MON YYYY HH:MM:SS') as Today from dual; VGG
  9. vgg

    ConText

    Please modify the query: select * from search_table where lower(search_column) like lower('search_word%'); VG
  10. vgg

    ConText

    Hi, I assume you give the search condition in the &quot;where&quot; clause.Then you can give your query as something like this: select * from search_table where lower(search_column) like 'lower(search_word)%'; You can create a function based index for lower(search_column) to improve...
  11. vgg

    execute immediate,ora936 error

    Hi mkey, try this out.. execute immediate 'insert into my_table values('||X||chr(44)||Y||')'; VGG
  12. vgg

    ref cursors in a package, Urgent!

    Hi mkey, In my example I have stored the result in a variable of type TABLE,the same you can try with VARRAY as well. TYPE empnumtyp is VARRAY(100) OF NUMBER(4); VGG
  13. vgg

    How to pass a cursor variable to a Oracle stored procedure

    Hi, Actually I have declared the cursor variable as an IN OUT parameter and I have defined the cursor itself in the stored procedure. I am returning the cursor to a ResultSet object in the host(java) program. You can change the cursor definition inside the stored procedure by using an IF..THEN...
  14. vgg

    regular expressions

    hi, You can use the following perl special variables, $` ->stores whatever precedes the currently matched pattern $& ->The pattern that you gave. $' -> The characters that follow the given pattern. So in your case, $` will have &quot;before&quot; $& will hold &quot;>&quot; and $' will...
  15. vgg

    How to pass a cursor variable to a Oracle stored procedure

    hi, Hope this example helps you. /* * This sample shows how to call a PL/SQL procedure that opens * a cursor and get the cursor back as a Java ResultSet. */ import java.sql.*; import java.io.*; import oracle.jdbc.driver.*; class RefCursorExample { public static void main (String args...
  16. vgg

    New to Perl- Print Output of array

    Hi, First try to print the array to the standard output and check if you have got the contents right.try open(XML_EXAMPLE,&quot;+>/export/home/egate/Perl_Development/XML_IN_PERL.txt&quot;); VGG
  17. vgg

    Script Problem with array.

    Hi, You can store the line as a TD value and push this td values into Tr . Print the reference of Tr in a table. ex. push @table_data,$cgi->Tr([$cgi->td(...)]); print $cgi->table(\@table_data); You can have different arrays for different tables when displaying on a webpage. VGG
  18. vgg

    Script Problem with array.

    Hi , sorry ,there is small correction.. #!/usr/bin/perl system &quot;rsh Baba disk status >output&quot;; $volstatus=&quot;output&quot;; open(FP,$volstatus); my $index; my @line_arr; #array to hold items in a line. my $i; while(<FP>){ # throw away \n chomp(); $line = $_...
  19. vgg

    Script Problem with array.

    Hi , Is this what you asked for?? #!/usr/bin/perl system &quot;rsh Baba disk status >output&quot;; $volstatus=&quot;output&quot;; open(FP,$volstatus); my $index; my @line_arr; #array to hold items in a line. while(<FP>){ # throw away \n chomp()...
  20. vgg

    Hi check out thread219-340803.

    Hi Never mind.This post was meant for &quot;seashores&quot; (thread219-340803) VGG

Part and Inventory Search

Back
Top