Skip to content

otherted/findfieldvalue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

findfieldvalue

PL/SQL script to find a value in a PeopleSoft database by searching all records and fields.

This script works for ORACLE environments.
There is also an SQR version, but the functionality is more limited.

Running the Script:

SQL*Plus:

  1. Open SQL*Plus and login to database
  2. Run script (ex. @findfieldvalue.sql)
  3. You will be prompted for the input values

SQL Developer:

  1. Open SQL Developer and connect to database
  2. Open File
  3. Run as script
  4. Prompt dialog will open. Enter values for each prompt.

Inputs:

  • Field Name: Provide a field name or use wildcards

  • Field Type: It is recommended to supply a value to avoid data type errors. Leave blank to search all supported types.

    • 0 = Character
    • 1 = Long Character
    • 2 = Number
    • 3 = Signed Number
  • Field Value: Value to search for, can use % wildcard

  • Return Detail Values:

    • Y (Yes) = Return each distinct variation of the search value that is found, includes count of how many times that value exists. Not possible on records with LONG columns so those will default to only summary output.
    • N (No) = Only count the instances of the search value that are found

The option to return each distinct variation of the search value found in the tables is done using a GROUP BY clause and provides much more detailed data, but the program will run much slower. Use with caution for large searches.

Output:

File is created listing the table and field where value was found. Output file is located under C:\Temp.

About

PL/SQL Script that will allow you to search for a value in all tables and fields within the PeopleSoft database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages