Please let me know if you have any thoughts on how to read a table that has all the oracle sql files or shell scripts at the job and step level to identify all the tables that does merge, update, delete, insert, create, truncate, alter table (ALTER TABLE XYZ RENAME TO ABC) and call them out separately to write to table and to a file as well. We have thousands of jobs and trying to write a script to gather all these details into a table and file.
Table Name:Steps Table Name:Schedule
Output
Column SCHEMA_XF Build means create table as select * from table a
Column SCHEMA_XF Swap means alter table a rename to b
Thank you
Moderator's Comments:
Please use code tags for output and code.
Thanks!
Last edited by Peasant; 02-14-2020 at 03:11 PM..
Reason: Added code tags.
Hi all,
Please see my requirement and post me asap.
Spool all the tables names into a file . Take each table name and check if it is present in any of the scripts in a directory using grep -il command. The script has to loop through the tables list and take each table and find it's presence... (7 Replies)
Hi
I need to write a shell script that will access tables available on webpages and update a table on my webpage on a periodic basis. It will access, say for example a website that periodically update a table with certain quantities and update my table accordingly.it should have the flexibility... (0 Replies)
Hi-
I am trying to achieve the following in a script so I can schedule it on a cron job. I am fairly new to the unix environment...
I have written a shell script that reads a flat file and loads the data into an Oracle table (Table1) via SQLLDR. This Works fine. Then, I run a nested insert... (5 Replies)
Hi ,
I have two tables with same length t1 and t2, I want to cretae a new third table where i put the difference between the elements of t2 and t1,
t3= t1 - t2
t3= t1 - t2
I am new to scripts, any help please? thanks (7 Replies)
I'm pretty new to the database world and I've run into a mental block of sorts. I've been unable to find the answer anywhere. Here's my problem: I have several tables and everything is as normalized as possible (as I've been lead to understand normalization.) Normalization has lead to some... (1 Reply)
Hi!
I would like to do a single connection to sqlplus and execute some querys.
Actually I do for every query one connection to database
i.e
echo 'select STATUS from v$instance;
exit' > $SQL_FILE
sqlplus user/pass@sid @$SQL_FILE > $SELECT_RESULT
echo 'select VERSION from v$instance;... (6 Replies)
Hi Experts:
I have a shell script that's kicked off by cron. Inside this shell script, I need to kick off two or more oracle sql scripts to process different groups of tables. And when both sql scripts are done, I will continue in the shell script to do other things like checking processing... (3 Replies)
dear all
please help me !
i need a script for exporting the selected tables of oracle database installed on CentOs.
i waiting your response.
thanks and regards (6 Replies)
Good evening
I nned your help pls, In an unix server i want to connect to a remote oracle databse server by sqlplus.
I tried to find out the user/passwd and service name by env variable and all Ive got is this:
ORACLE_SID_REPCOL=SCL_REPCOL
ORACLE_SID=xmeta
ORACLE_SID_TOL=SCL_PROTOLCOL... (2 Replies)
Discussion started by: alexcol
2 Replies
LEARN ABOUT DEBIAN
alzabo::table
Alzabo::Table(3pm) User Contributed Perl Documentation Alzabo::Table(3pm)NAME
Alzabo::Table - Table objects
SYNOPSIS
use Alzabo::Table;
my $t = $schema->table('foo');
foreach $pk ($t->primary_keys)
{
print $pk->name;
}
DESCRIPTION
Objects in this class represent tables. They contain foreign key, index, and column objects.
METHODS
schema
Returns the "Alzabo::Schema" object to which this table belongs.
name
Returns the name of the table.
column ($name)
Returns the "Alzabo::Column" object that matches the name given.
An "Alzabo::Exception::Params" exception is throws if the table does not contain the column.
columns (@optional_list_of_column_names)
If no arguments are given, returns a list of all "Alzabo::Column" objects in the schema, or in a scalar context the number of such tables.
If one or more arguments are given, returns a list of table objects with those names, in the same order given.
An "Alzabo::Exception::Params" exception is throws if the table does not contain one or more of the specified columns.
has_column ($name)
Returns a voolean value indicating whether the column exists in the table.
primary_key
In array context, return an ordered list of column objects that make up the primary key for the table. In scalar context, it returns the
first element of that list.
primary_key_size
The number of columns in the table's primary key.
column_is_primary_key ("Alzabo::Column" object)
Returns a boolean value indicating whether the column given is part of the table's primary key.
This method is really only needed if you're not sure that the column belongs to the table. Otherwise just call the "Alzabo::Col-
umn->is_primary_key" method on the column object.
attributes
A table's attributes are strings describing the table (for example, valid attributes in MySQL are thing like "TYPE = INNODB".
Returns a list of strings.
has_attribute
This method can be used to test whether or not a table has a particular attribute. By default, the check is case-insensitive.
* attribute => $attribute
* case_sensitive => 0 or 1 (defaults to 0)
Returns a boolean value indicating whether the table has this particular attribute.
foreign_keys
Thie method takes two parameters:
* column => "Alzabo::Column" object
* table => "Alzabo::Table" object
It returns a list of "Alzabo::ForeignKey" objects from the given column to the given table, if they exist. In scalar context, it returns
the first item in the list. There is no guarantee as to what the first item will be.
An "Alzabo::Exception::Params" exception is throws if the table does not contain the specified column.
foreign_keys_by_table ("Alzabo::Table" object)
Returns a list of all the "Alzabo::ForeignKey" objects to the given table. In scalar context, it returns the first item in the list.
There is no guarantee as to what the first item will be.
foreign_keys_by_column ("Alzabo::Column" object)
Returns a list of all the "Alzabo::ForeignKey" objects that the given column is a part of, if any. In scalar context, it returns the first
item in the list. There is no guarantee as to what the first item will be.
An "Alzabo::Exception::Params" exception is throws if the table does not contain the specified column.
all_foreign_keys
Returns a list of all the "Alzabo::ForeignKey" objects for this table. In scalar context, it returns the first item in the list. There is
no guarantee as to what the first item will be.
index ($index_id)
This method expects an index id as returned by the "Alzabo::Index->id" method as its parameter.
The "Alzabo::Index" object matching this id, if it exists in the table.
An "Alzabo::Exception::Params" exception is throws if the table does not contain the specified index.
has_index ($index_id)
This method expects an index id as returned by the "Alzabo::Index->id" method as its parameter.
Returns a boolean indicating whether the table has an index with the same id.
indexes
Returns all the "Alzabo::Index" objects for the table.
comment
Returns the comment associated with the table object, if any.
AUTHOR
Dave Rolsky, <autarch@urth.org>
perl v5.8.8 2007-12-23 Alzabo::Table(3pm)