the base tables store jobs oem
HelloI have some work in the Oracle Enterprise Manager job console. (These jobs call a PL/SQL procedure). Can you please let me know what are the base tables that store the names of this work, work planning and other information about jobs? The version of database is Oracle 9i and OEM version 9.0.2
Thank you
RK
Hello
using the repository database
Work 4SystemJOBS tables
--> Connect as SYSDBA
# > export ORACLE_SID = emrep
# > sqlplus / as sysdba
SQL # > select table_name from user_tables where table_name like '% % ';
4Emrep (OEMGC) work tables
--> Connect as SYSMAN
# > sqlplus sysman/MYPASS@emrep
SQL # > select table_name from user_tables where table_name like '% % ';
SQL # > mgmt_job desc;
* T
Tags: Enterprise Manager
Similar Questions
-
How to compare the length of the data to a staging table with the definition of the base table
Hello
I have two tables: staging of the table and the base table.
I get flatfiles data in the staging of the table, depending on the structure of the requirement of staging of the table and the base table (length of each column in the staging table is 25% more data dump without errors) are different for ex: If we have the city long varchar 40 column in table staging there 25 in the base table. Once data are discharged into the intermediate table that I want to compare the actual length of the data for each column in the staging table with the database table definition (data_length for each column of all_tab_columns) and if no column is different length that I need to update the corresponding line in the intermediate table which also has an indicator called err_length.
so for that I use the cursor c1 is select length (a.id), length (b.SID) of staging_table;
c2 (name varchar2) cursor is select data_length all_tab_columns where table_name = 'BASE_TABLE' and column_name = name;
But we get atonce data in the first query while the second slider, I need to get for each column and then compare with the first?
Can someone tell me how to get the desired results?
Thank you
Manoi.Hey, Marco.
Of course, you can set src.err_length in the USING clause (where you can reference all_tab_columns) and use this value in the SET clause.
It is:MERGE INTO staging_table dst USING ( WITH got_lengths AS ( SELECT MAX (CASE WHEN column_name = 'ENAME' THEN data_length END) AS ename_len , MAX (CASE WHEN column_name = 'JOB' THEN data_length END) AS job_len FROM all_tab_columns WHERE owner = 'SCOTT' AND table_name = 'EMP' ) SELECT s.ename , s.job , CASE WHEN LENGTH (s.ename) > l.ename_len THEN 'ENAME ' END || CASE WHEN LENGTH (s.job) > l.job_len THEN 'JOB ' END AS err_length FROM staging_table s JOIN got_lengths l ON LENGTH (s.ename) > l.ename_len OR LENGTH (s.job) > l.job_len ) src ON (src.ename = dst.ename) WHEN MATCHED THEN UPDATE SET dst.err_length = src.err_length ;
As you can see, you have to hardcode the names of the columns common to several places. I swam () to simplify that, but I found an interesting (at least for me) alternative grouping function involving the STRAGG user_defined.
As you can see, only the subquery USING is changed.MERGE INTO staging_table dst USING ( SELECT s.ename , s.job , STRAGG (l.column_name) AS err_length FROM staging_table s JOIN all_tab_columns l ON l.data_length < LENGTH ( CASE l.column_name WHEN 'ENAME' THEN ename WHEN 'JOB' THEN job END ) WHERE l.owner = 'SCOTT' AND l.table_name = 'EMP' AND l.data_type = 'VARCHAR2' GROUP BY s.ename , s.job ) src ON (src.ename = dst.ename) WHEN MATCHED THEN UPDATE SET dst.err_length = src.err_length ;
Instead of the user-defined STRAGG (that you can copy from AskTom), you can also use the undocumented, or from Oracle 11.2, WM_CONCAT LISTAGG built-in function.
-
Add more than 2 lines for a select statement without inserting rows in the base table
Hi all
I have a below a simple select statement that is querying a table.
Select * from STUDY_SCHED_INTERVAL_TEMP
where STUDY_KEY = 1063;
but here's the situation. As you can see its return 7 ranks. But I must add
2 rows more... with everything else, default or what exist... except the adding more than 2 lines.
I can't insert in the base table. I want my results to end incrementing by 2 days in
measurement_date_Taken on 01-APR-09... so big measurement_date_taken expected to
end at study_end_Date...
IS IT STILL POSSIBLE WITHOUT INSERT ROWS IN THE TABLE AND PLAYIHY ALL AROUND WITH
THE SELECT STATEMENT?
Sorry if this is confusing... I'm on 10.2.0.3
Published by: S2K on August 13, 2009 14:19Well, I don't know if this request is as beautiful as my lawn, but seems to work even when ;)
I used the "simplified" version, but the principle should work for your table, S2K.
As Frank has already pointed out (and I fell on it while clunging): simply select your already existing lines and union them with the 'missing documents', you calculate the number of days that you are "missing" based on the study_end_date:MHO%xe> alter session set nls_date_language='AMERICAN'; Sessie is gewijzigd. Verstreken: 00:00:00.01 MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn 2 select 1063 study_key 3 , to_date('01-MAR-09', 'dd-mon-rr') phase_start_date 4 , to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken 5 , to_date('01-APR-09', 'dd-mon-rr') study_end_date 6 from dual union all 7 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 8 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 9 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 10 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 11 select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 12 select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual 13 ) -- actual query: 14 select study_key 15 , phase_start_date 16 , measurement_date_taken 17 , study_end_date 18 from t 19 union all 20 select study_key 21 , phase_start_date 22 , measurement_date_taken + level -- or rownum 23 , study_end_date 24 from ( select study_key 25 , phase_start_date 26 , measurement_date_taken 27 , study_end_date 28 , add_up 29 from ( 30 select study_key 31 , phase_start_date 32 , measurement_date_taken 33 , study_end_date 34 , study_end_date - max(measurement_date_taken) over (partition by study_key 35 order by measurement_date_taken ) add_up 36 , lead(measurement_date_taken) over (partition by study_key 37 order by measurement_date_taken ) last_rec 38 from t 39 ) 40 where last_rec is null 41 ) 42 where rownum <= add_up 43 connect by level <= add_up; STUDY_KEY PHASE_START_DATE MEASUREMENT_DATE_TA STUDY_END_DATE ---------- ------------------- ------------------- ------------------- 1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00 9 rijen zijn geselecteerd.
Is there a simpler way (in SQL), I hope that others join, and share their ideas/example/thoughts.
I feel that it is using more resources there.
But I have to cut the daisies before now, they interfere my 'grass-green-ess";) -
reason for updating a view rather than on the base table
Can someone tell me what is the reasons that sometimes we would update a view rather than on the base table? I always thought that we cannot update a view, of course, I am wrong. Thank youHi Welcome to the Forum
Basically, a view is used to present the data, a different way. He can rely on more than one table and we cannot update a
Discover directly that contains Sql functions, aggregate functions, a group of Clause and a view created excluding the required columns of the table.In all the cases mentioned Instead of trigger is very useful
Published by: user10862473 on July 28, 2009 07:10
-
I have an old database that has a table of great sys.job$ and the large index on it. (indices are just standard installed indexes nothing we did) However the table has very little data in it now, only 22 rows. Yet between the table and index is > 1 GB in size.
The enforcement team asked me to reorg or shrink the table sys.job$ and explained its large size is probably due to the fact that they believe some process went wrong turned for years resulting in job creation, but his long since been cleaned.
What motivates is to save space in the SYSTEM tablespace and possibly help some query performance.
I know that in general its forbidden to directly manipulate the sys objects (such as truncation, insert, etc. with the exception of sys.aud$).
Y at - it a taken way supported to reduce the size of this table. Any document referencing.
Yes, there is a way taken in charge.
It's called "Recreate the database"
-------------
Sybrand Bakker
Senior Oracle DBA
-
create view materized without constraint primary key on the base table?
Hello
I tried to create a materized view, but I got this error:
SQL > CREATE MATERIALIZED VIEW FAST REFRESH TABLE1_MV
START BY
TO_DATE (April 25, 2009 03:00:13 ',' DD-MM-YYYY hh24:mi:ss')
NEXT
SYSDATE + 1
AS
Select * from TABLE1@remote_db
SQL > /.
CREATE MATERIALIZED VIEW FAST REFRESH TABLE1_MV
*
ERROR on line 1:
ORA-12014: table 'TABLE1' does not contain a primary key constraint.
Table1 in remote_db is not a primary key constraint. Is there anyway that I can create a view materized on a base table that is not a primary key constraint?
Thank you
LizMake sure user name used in remote_db database link has select privileges on Journal of MV. On the issue of db source:
SELECT LOG_TABLE FROM DBA_MVIEW_LOGS WHERE LOG_OWNER = 'TABLE1-owner' AND MASTER = "TABLE1";
This will give you MV table the journal name. On the issue of target side:
SELECT * from MV-LOG-NAME@remote_db;
And after your version.
SY.
-
Data block in the procedure and the Base Table
Hello
I hava a form with a block of master and detail. The fields in the Master block are
Emp_name, DateOfJoin, salary... I created this block with the procedure with a Ref Cursor, becaue the user
want to load the data based on the conditions it enter for example: DateOfJoin < = Sysdate and DateOfJoinn July 1, 2008 "."
SO I created a block of control with the fields name, MiddleName, LastName, of DateOfJoin, in DateOfJoin, the salary, and when the user clicks on the data loading
button, I load the data to block under these conditions using the procedure.
Note that in the Emp_Name table if a field, but contain first name, middle name, and last name with a separate space.
My needs is, is there any method to develop this master block with a database table, so that if the user want to select it
data based on other conditions, it can enter directly into the block of data using Qry enter and run Qry, also if he wants to
Select data based on the top-level asked the search criteria, it will click Load Data.
I hope that in this case, when the user selected the Load data button, I need to change the data source to the Type of procedure and set the source of data on behalf of the procedure name.
Is there any other easy solution flor this
Thanks in advancenot sure if I get your needs. I understand the following:
You have a block based on table emp, containing a DateOfJoin column and the user should be able to enter into a 'complex' where denomination.To do this, you do not have to base block one a procedure or ref_cursor. Two possibilities:
Add two fields more directly in the block that are non-base of data-objects of type date fixed query on yes and let the user to enter a date range in these columns. In the accumulation of PRE-QUERY-trigger a WHERE condition by using the value in this field:
something like:
DECLARE vcMin VARCHAR2(10):='01.01.1700'; vcMax VARCHAR2(10):='01.01.2999'; BEGIN IF :BLOCK.DATE_FROM_JOIN IS NOT NULL THEN vcMin:=TO_CHAR(:BLOCK.DATE_FROM_JOIN, 'DD.MM.YYYY'); END IF; IF :BLOCK.DATE_TO_JOIN IS NOT NULL THEN vcMax:=TO_CHAR(:BLOCK.DATE_TO_JOIN, 'DD.MM.YYYY'); END IF; SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'DATEOFJOIN BETWEEN TO_DATE(''' || vcMin || ''', ''DD.MM.YYYY'') AND TO_DATE(''' || vcMax || ''', ''DD.MM.YYYY'')'); END;
Another option:
together, the length of the request of the DATEOFJOIN field to say 255, then the user can directly enter #BETWEEN fromdate AND fodate in the field. -
When the id program in the base table will be updated?
Hello
I have a trigger on the table mtl_system_items_b that fires events when a record is created / updated. I need to create a program that will update the records in the table, but at the same time, it will not trigger trigger events for the updated records. My plan is to use the program_id column in the MSIB table to check if the particular update is done by the new program. Now, the question is, what happens if the same record is updated by any user front end (after the execution of the program)? It will update the program to something else id so that the trigger fires the event? If this isn't the case, then how can I limit the trigger for these recordings?
We can disable the trigger during execution of the program, but that we will lose some updates made by users on other records.
Thanks in advance... !!
Devendra
Hi Devendra,
When someone updates the same record on before the id program also updates.
Solution because it would be too write a when clause to your relaxation. Something like below
CREATE OR REPLACE TRIGGER
after insert/update
REFERRING AGAIN AS NINE OLD AND OLD
FOR EACH LINE
Where (NEW.program_id =
) DECLARE
end;
hope this helps you.
Kind regards
SoundariyaKumar.R
-
Why mandatory columns of the Base tables and interface are different?
Hi guys, I support provider in PA (ap_suppliers) thanks to the Interface table (ap_suppliers_int), but my confusion is that ap_suppliers have 8 required columns, but its interface ap_suppliers_int have only 2 column.why? mandatory and also with these 2 columns also load records.
Kind regards
Shakeel khanYes sometimes it is and also depends on the current configuration of oracle. Some of the fields are automatically generated.
sometimes better to analyze the package to interface and then use the interface programs.
Thank you
Kiran -
Find the Base Table hence temporary Table is based on data
Hi all
I develop a report using Oracle reports Builder 6. The report that I develop is very similar to the seeded report "CIP détail Report", in Oracle Apps. This report uses a temporary database table 'FA_BALANCES_REPORT_GT' but I'm not be able to find the table, hence this temporary table is data drawing. I need details of the table to use in my report.
Thank you in advance.
RahulHello Rahul,
I think you should post this message on the forum of E-Business Suite. Anyway, you can consult the Oracle support note [395342.1 | https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=395342.1] how FA_BALANCES_REPORT_GT of Table fill temporary cost report for retail (FASCOSTD)? and see if that helps you.
Kind regards.
-
creating form without having the base table
Hello friends,
I was just jiglling with a single query in my mind that we will achieve an express application FORM without using a table for her.
I mean, all feature here in the Apex, where, when submit us a form, then it will make the tables and columns that automatically based on metadata fields, I gave in my form.
I get nothing in the apex where I can make a form without tables/views associated with it.
I'll be very grateful if someone can help out me
ConcerningAs previously indicated not currently*.
-
How to load data from matrix report in the base using ODI table data
Hello
How to load matrix report data in the base table data using oracle Data Integrator?
Description of the requirement:
This is the data from matrix report:
Need to convert it to the format below:JOB DEPT10 DEPT20 ___________________________ _____________ ANALYST 6000 CLERK 1300 1900
Thank you for your help in advance. Let me know if any other explanation is needed.JOB Dept Salary _____________________________________________ ANALYST DEPT10 ANALYST DEPT20 6000 CLERK DEPT10 1300 CLERK DEPT20 1900
Your list seems to be a bit restrictive, you can do much more with the procedures of ODI.
If you create the new procedure and add a step. In the 'source' tab command you define technology and pattern according to your source database. Use the unpivot operator as described in the link, please, instead of using "SELECT *' use the column names and aliases for example:"
SELECT workstation,
deptsal as deptsal,
saldesc as saledesc
OF pivoted_data
UNPIVOT)
deptsal-<-->-->
FOR saldesc-<-->-->
IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->-->
)Then in your tab 'command on target' defined technology and drawing on your target db, then put your INSERT statement for example:
INSERT INTO job_sales
(employment,
deptsal,
saledesc
)
VALUES
(
: job,.
: deptsal,.
: saledesc
)That's why you use bind variables from source to load data into the target.
Obviously if the source and target table is in the same database, you can have it all in a single statement to the "command on target' as
INSERT INTO job_sales
(employment,
deptsal,
saledesc
)
SELECT workstation,
deptsal as deptsal,
saldesc as saledesc
OF pivoted_data
UNPIVOT)
deptsal-<-->-->
FOR saldesc-<-->-->
IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->-->
)also assign the log count "Insert" on the tab corresponding to your INSERT statement, so that you know how many rows you insert into the table.
I hope this helps.
BUT remember that this feature is out in Oracle 11 g.
-
How to display the records of the base as well as a few other table table?
Hello expert,
I have an obligation to develop a form described below:
A control block and block of data.
DB block is based on table T1 (USER, Table_name, Column_name, ACCESS);
In the control block, there are three fields,
User, Table user will enter and block DB will query based on fields of control (user, table_name) block.
In the table, it is not necessary that all columns of the table will be given.
Assume there is a table X consist of 10 columns.
Initially the user gives access to all of the 10 columns use this form.
If we ask for the user, table, everything will come from table T1.
Now consider the case, then the access granted to table X number of columns were 10. After that, 2 new columns added later.
There is now no Info for the added column in table T1. I want to if user query DB block, these newly added column should display in block DB.
Please help me.
Thank you
David
> I want to if user query DB block, these newly added column should display in block DB.
You must change your form and add the two columns as part of the base table. Forms does not add two elements to the base table of itself.
-
Base table for the customer in R12
Hello
What is the name of the base table for the customer in R12?
Thank you
GSMPlease see (absorption of the projects of the TCA Architecture in version 12 [417511.1 ID]).
Thank you
Hussein -
Drop the materialized view's base table
HI please let me know what happens if I drop from the base table of a materialized view? the MV remains valid with the data?Hello
Well, it's easy to test yourself.
SQL> select count(*) from t1; COUNT(*) ---------- 100 SQL> desc t1 Name Null? Type ----------------------------------------- -------- ---------------------------- ID NUMBER(10) SQL> create materialized view t1_mv as select * from t1; Materialized view created. SQL> select count(*) from t1_mv; COUNT(*) ---------- 100 SQL> drop table t1 purge; Table dropped. SQL> select count(*) from t1_mv; COUNT(*) ---------- 100 SQL> desc t1_mv Name Null? Type ----------------------------------------- -------- ---------------------------- ID NUMBER(10) SQL> select object_type, status from user_objects where object_name = 'T1_MV'; OBJECT_TYPE STATUS ------------------- ------- TABLE VALID MATERIALIZED VIEW INVALID SQL> select * from t1_mv where rownum < 5; ID ---------- 1 2 3 4 SQL>
I think the answer is very clear.
Asif Momen
http://momendba.blogspot.com
Maybe you are looking for
-
When I right click on an image to make a backup because it won't let me save the image in jpeg format, what is on the menu drop-down is "all files" that records under a bunch of numbers and letters, etc. It save it as an aspx file.
-
Tecra S1: Screen starts flashing and is now black
Hello. I have a Toshiba Tecra S1. Its 4 years. Last night my screen suddenly started flashing and my computer froze. I had to reboot my computer and then the screen starts sometimes, but mostly it stays black. If splash screens, I have only gently sh
-
Prestaties langzaam system traag opstarten wearing
IK kan mijn MacFee firewall niet inschakelen
-
How can I change the margins in a chart?
I want to reduce the size of the left margin in the paintings. LabVIEW seems to lose a lot of space in the left margin. See attached screenshot. Is it possible to do? Dave
-
Update of the EditField values
In my form, I have a text field with the value assigned to him and it seems while loads the form and action button click, I have to place the choice selected the choice field in the editfield, pblm that I face is, the values of selected field gets ad