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 bkrike 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: Tison
  • Content: Threads
  • Order by date
  1. Tison

    How do I format a shell script ?

    I have long shell scripts . I would like to format the script to set correct indentation and spacing ?
  2. Tison

    How do I send email from AIX

    Can anyone tell me how I send an email from AIX to an external address ? What do I need to setup ?
  3. Tison

    How do I load numeric into char using SQL Loader

    I have data consisting of various numeric fields (dec 8.2). I want to load them into an Oracle table dropping the decimal and making them char(8). My sql loader cntrl file defines them as ; Field1 char "to_char(:field1,'99999999')" But this does not work. I get error ; ORA-01401: inserted value...
  4. Tison

    Why does db clone need recovery

    I clone a db from one server to another as folows ; 1. shutdown immediate on server A (Solaris 8, Ora 9i) 2. copy all datafiles to server B (Solaris 8, Ora 9i) 3. startup creating new cntrl file Usually all is ok but sometimes it says that one of the datafiles needs recovery. Someone said that...
  5. Tison

    Anyone have script to show tablespace > 90% used

    I am trying to write a database check that will send me an email message if there is any tablespace > 90% used. The email is not the problem. The problem is that I am trying to return either a TRUE flag or a count of tablespaces where % used > 90. Anyone got such a thing ?
  6. Tison

    Update_Statistics very slow

    I have a table of over 1 million records and the update_statistics command runs for many hours on it - even seems to hang at times. How can I improve this ? Are there any parameter settings that will help ?
  7. Tison

    How do a validate using group by

    I have a large table as follows Rec_Type Rec_Month Rec_Year Stuff A Oct 2004 sdsddsxfdfsdf A Nov 2004 tyytrtrt B Oct 2004 rgdrghgdfdf C Oct 2004 jtyjtjtrjtyjtyjty C Nov 2004 ererggdfg I want to select where...
  8. Tison

    How do I split file with rec length > 2048

    I have a file with rec length of 2096. I can "more" the file but would like to "grep" it. How can I split a file vertically ie selecting each record bytes 1-1000 only (Note ; not lines 1-1000 but bytes or columns)
  9. Tison

    How do I set alis when switch to su

    If I login as root - my environment is fine. If I login as another user and su without the - option, my environment is not set. What I want to do is set "alias rm -i" and "set -o vi" when I su (without using the - option).
  10. Tison

    How can I speed up "update_statistics"

    My update_statistics command is running for hours. Is there a way to speed it up with parrallel tasks or buffers or anything ?
  11. Tison

    Why is my cron job sending me email

    I have a job scheduled via cron. It runs fine but sends me a blank email every day. There are no echo or print statements in the job. Why am I getting this email and how do I stop it ?
  12. Tison

    How do I remove archived files

    Does anyone have a batch script that I can run daily to remove files that do NOT have the archive bit set ?
  13. Tison

    OPTDIAG returns "cant get localized message"

    When I run optdiag, I get this message and optdiag aborts ; Cant get localized message Optdiag failed What is it looking for ? ---------------------------- This is my command and the resultant output file; >optdiag statistics recon -o recon.opt -Uid -Ppass >cat recon.opt OptDiag/12.5.0.3/EBF...
  14. Tison

    Why does my spool write each record seperate line

    Why does this write each record on a separate line ? (note; only a small sample of actual script) sqlplus -S id/pass@sid << EOT >>/dev/null set heading off set pagesize 0 set linesize 132 set serveroutput off set verify off set feedback off spool fileout select vendor_name , vendor_alt from...
  15. Tison

    How do I validate parameter input

    I want to validate this input (year comma month) ; 2004,06 and the validation must check for valid year 1999 - 2010 must check for a comma must check for valid month 01-12
  16. Tison

    How do I convert varchar to datetime

    I have a varchar that looks like this ; 2004-06-14-16.58.42.528000 How do I convert it to Sybase datetime ?
  17. Tison

    How do I process each line in a file

    I need to do a task depending on first 5 chars in each line of a file. This script does not work (it shows each word as a line)? for rec in `cat myfile` do echo $rec | cut -c1-5 done MYFILE looks like this ABCDEsome string of data FRED some string of data HARRYsome string of data
  18. Tison

    What is best way to reorg large table

    I have a tbale of 5548 rows = 445Mb This table has over 1000 extents. If I reorder it, what would be best Initial, Next extent allocations (currently 104K , 128K)
  19. Tison

    Can I migrate a db from LOGGING to a NONLOGGING instance

    I clone a database by shutting down A and doing a full *.dbf copy to another instance B on another server. I then recreate the B control file and start the instance. Now I want to put logging on instance A and not on B. Can I still do my clone this way by just specifying NOLOGGING on the B startup ?
  20. Tison

    Why does memory go down in vmstat

    Why does the free mem go down in vmstat ? kthr memory page faults cpu ----- ----------- ------------------------ ------------ ----------- r b avm fre re pi po fr sr cy in sy cs us sy id wa 1 1 46283 193717 0 0 0 0 0 0 298 1035...

Part and Inventory Search

Back
Top