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 Wanet Telecoms Ltd 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: kwil38
  • Content: Threads
  • Order by date
  1. kwil38

    Return multiple rows with a function

    I have a table defined as follows: Row_id NUMBER Email VARCHAR2(50) Option_Name VARCHAR2(2000) Option_Value_1 VARCHAR2(2000) Option_Value_2 VARCHAR2(2000) Last_Update_Date DATE I need to create a function that will return all rows (there could be 1 or many) for a...
  2. kwil38

    Delete Old Archivelogs

    I am using Oracle 10g and RMAN on Linux. Is there a way to automatically delete archivelogs that have been backed up 3 times via OEM or a script? Currently, I'm deleting them manually with the following: rman catalog=rman/*****@RMAN target=netbackup/******@PROD RMAN> delete archivelog all...
  3. kwil38

    Recovery To Another Database

    I'm testing my backup and recovery strategy and am stuck on the following scenerio - The production server crashes and I have to recover a database named 'prod' onto another server and a database called 'test'. I have successfully recovered from the last cold backup by restoring the datafiles...
  4. kwil38

    Reclaim Space in a Tablespace After Purging

    I have purged some old data out of a couple of tables, all of which belong to the same tablespace. After doing this, I expected my tablespace size to decrease, however it remained exactly the same. Is there another step or a compression utility that I need to run to reclaim this space...
  5. kwil38

    Killing a session shut down my database!!!

    I tried to kill a user session and it shut down my database!!!! Here's what I did - I had logged into Enterprise Manager, selected the session I wanted to end, and clicked the kill session button. I received an error to the effect of "can't close session" and I clicked the cancel button...
  6. kwil38

    ORA-00474: SMON process terminated with error

    Last Friday, my Oracle 9i production database shut itself down during the middle of the workday...never happened before in the 4 months we've been live with Oracle. After examining the alert log file, I found the following error caused the database to shutdown: Fri Dec 30 13:51:16 2005 Errors...
  7. kwil38

    Any Way To Break Up An Address Into It's Components

    I have an address string (ex. Rural Route 12 Box 204) that I need to break into individual address components - i.e. Rural Route 12 as the street and 204 as the box. The easiest way I can see to do this is to start reading the string at the beginning, somehow get the end position of the first...
  8. kwil38

    DESEncrypt Procedure

    I don't understand what the purpose of the "key string" is in the procedure...Can anyone fill me in? Here are the parameter names, mode, type, and description of the input parameters: input IN RAW Data to be decrypted key IN RAW Decryption key decrypted_data OUT...
  9. kwil38

    Password Encryption

    I'm trying to create (what I thought would be) a simple procedure to Base64 encode a password using the utl.encode.base64_encode function. When I try to compile the procedure, I receive the following error on the "UTL.ENCODE.BASE64_ENCODE..." line - PLS-00103: Encountered the symbol "RAW"...
  10. kwil38

    Accessing Stored Procedure Return Value From ASP Page

    I've created a simple stored procedure in Oracle 9i which requires 1 input parameter (i_date_registered) and returns 1 output value (o_grant_access). The procedure works fine when running from sqlplus and seems to run fine from my ASP page until I try to access the o_grant_access value....then I...
  11. kwil38

    Call function in select statement

    I'm trying to use a function in the select statement for a view to return a value which will be a column in the view. The function compute and returns a value when I run it alone, but inside the Select statement it causes my view to not return any rows. Not sure what I'm doing wrong. Any...
  12. kwil38

    Need Select Statement To Return Multiple Rows

    I've got a select statement in a .asp page which retrieve information from a view. In some cases, the query will return more than 1 row. When this happens, I need to read all of the rows returned, not just the first row. How can I do this? Thanks!
  13. kwil38

    Need Record Number

    I'm need to have a unique record number for each row that a Select statement returns (i.e. - 1 for the 1st record, 2 for the second record, etc.). I've been attempting to do this via "Count", however I am receiving the same record number (1) for each row returned. SELECT COUNT(*) "RecNum"...
  14. kwil38

    Replace Function

    I have a field in a view called 'cr_dr' which contains 'CR' (for credit) and 'DR' (for debit). I'm attempting to create another view that references the first view and would like it to contain '+' instead of 'CR' and '-' instead of 'DR'. I've tried to do this via the Replace and Translate...
  15. kwil38

    Select on Null Values

    I'm creating a .asp page in which a customer will enter his address info (house number, street direction, street name, street type, post direction, apartment, and zip). The page will then attempt to verify whether or not the address exists in a view via a Select statement on all of these...
  16. kwil38

    View Question

    I'm attemping (newbie) to create a view with the following statement: CREATE OR REPLACE VIEW vw_web_registrations AS SELECT addr.address.house, addr.address.fst_dir, addr.address.street, addr.address.street_suffix, addr.address.snd_dir...
  17. kwil38

    Max Datafile Size

    A little background....I'm using Oracle 9i on a Windows 2003 server It seems like I've read somewhere that it is a good rule of thumb not to make datafiles over 2 GB for performance reasons. Can someone explain this to me in a little more detail? Currently, I have a datafile that is 4 GB, of...
  18. kwil38

    Exporting a database

    Is it ok to do a full export of a database while users are connected to that database? Any drawbacks?
  19. kwil38

    How can I move a single table's data to another db?

    I'm new to Oracle so please forgive my ignorance... Is there a way to export the data from a single table of "database A" and then import it into an empty table that is structured the same in "database B"? I know a little about exporting/importing the whole database, so is there a different...
  20. kwil38

    Toad Error

    I'm receiving the following error after logging into Toad and selecting "Database" from the menu bar and then "Schema Browser": 26 is an invalid PageIndex value. PageIndex must be between 0 and 25. After clicking ok, I receive another error: Error reading lvTables.ShowColumnHeaders: Invalid...

Part and Inventory Search

Back
Top