System tables
Hello all,
From my oracle dossiers, some of the system tables don't appear in the tables tab in toad; for instance all_tables.
I'm able to use these tables in select clause, but it would still be very practical to get a list of these.
Can someone please provide me some feedback on this issue?
many thanks,
Er.. feedback? Okay, if you insist. TOAD sucks. SQL*Plus and vim rules!
ALL_TABLES is a view. Not a table. There are a couple of layers of system related objects. Some virtual on memory structures in the SGA or PGA (like X$ and V$ views). Some base objects for the data dictionary (like the OBJ$ table), and some are views on these (like DBA_*, USER_* and ALL_* views).
Refer to the Oracle® Database Reference guide for details. All Oracle documentation (for 8i to 10G) available via http://tahiti.oracle.com
Similar Messages
-
Checking if UDF in System Table Exists
Hi all,
I want to add a UDF in the RDR1 table (Sales Order Lines). I'm having a problem checking if the field exists! This is my code...
If Not oUserFieldMD.GetByKey("RDR1", 0) Then
oUserFieldMD.TableName = "RDR1"
oUserFieldMD.Name = "NJ_OpnTpoQty"
oUserFieldMD.Description = "Open TPO Qty"
End If
The problem is that I have previous UDF's from other Add-Ons in that table and so I cant use a Hard Code 0 "Zero" in the "FieldID" Parameter for the GetByKey Method! It could vary depending on the number of existing UDFs. How do I check for the this UDF with using the "TableID" and "AliasID". I could use a oRecordSet.DoQuery and check if the RecordCount = 0....but I am having a "-1120 Ref Count..." error problem with having two BoObjects open simultaneously.
Does any1 have any other way of checking if UDFs exists in System Tables?
ThanksHi Noor
I know 2 ways:
1st:
Dim mRs As SAPbobsCOM.Recordset
mRs.DoQuery("SELECT TableID FROM CUFD WHERE TableID = 'RDR1' AND FieldID = 'NJ_OpnTpoQty'")
If Not mRs.EoF Then
'Add Field
End If
The problem is that you can have this field with other TableId and your code will crash
2nd:
Put your "add field" code in a Try..Catch block with no code in catch section.
HTH -
How to copy system table from one client to another client
Hi,
Currently i am implementing recruitment module in one of the power sector company. I have finished all the configuration in one of the client in development server. I have trasported all the request in Qulaity server so that i can do the testing. When i am running TCode : PBA7 (Direct Data Transfer) i am getting a runtime error with error analysis -
A SELECT, UPDATE, or DELETE statement contains the invalid table
name "PB0021".
I have checked this system table in this client (Quality Server) but this table is not available, but at the same time this table is available in Devepment server client where i can run this transaction.
Requiring your help on this to resolve this issue. Do i need to copy this system table PB0021 from Development server client to Quality server client? If so then how to do this activity?
Thanks in advance....
Regards,
MilindHi Milind,
Goto SE01.
Create a workbench request manually.
Add the following entry.
R3TR TABL PB0021.
Transport the request to quality system.
Hope this works.
Best wishes,
Dilek -
A sample code to check records of a system table?
hi ABAP4 experts,
We are pretty new at ABAP4. We would be appreciated if you can provide a sample code to check how many records and calculate a total amount for a specific field, e.g., DMBTR in a system table, e.g., BSEG. Note: there is no any selection for this table BSEG, we just want to get the total record count in this table and also the total amount for a specific field e.g. DMBTR in this table.
Do we have to use an internal table to transfer all the records of BSEG into the internal table to get the result?
We will give you reward points!Hi Kevin,
Using SUM directly in SQL will NOT work for table BSEG because BSEG is pool table. You will get an ABAP error.
"Aggregate functions and the addition DISTINCT are not supported in field lists for pooled and cluster tables".
You need an internal table to transfer all data from BSEG and perform calculation for count and sum.
Concerning about performance running perhaps you can code something like this.
REPORT ZZFLTEST NO STANDARD PAGE HEADING.
TABLES: BSEG.
DATA: CURS TYPE CURSOR,
PACKAGE_SIZE LIKE RMCS4-MC_CM_PSIZE VALUE '10000'.
DATA: BEGIN OF I_BSEG OCCURS 0,
BELNR TYPE BSEG-BELNR,
BURKS TYPE BSEG-BURKS,
GJAHR TYPE BSEG-GJAHR,
BUZEI TYPE BSEG-BUZEI,
DMBTR TYPE BSEG-DMBTR,
SHKZG TYPE BSEG-SHKZG.
DATA: END OF I_BSEG.
DATA: TOT_DMBTR TYPE BSEG-DMBTR,
TOT_REC TYPE I.
SELECTION-SCREEN BEGIN OF BLOCK B01 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP.
PARAMETERS: P_SIZE LIKE RMCS4-MC_CM_PSIZE DEFAULT '10000'.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK B01.
START-OF-SELECTION.
PACKAGE_SIZE = P_SIZE.
OPEN CURSOR WITH HOLD CURS FOR
SELECT BELNR BURKS GJAHR BUZEI DMBTR SHKZG
FROM BSEG
WHERE BELNR <> SPACE
AND BURKS <> SPACE
AND GJAHR <> SPACE
AND BUZEI <> SPACE.
*Fetch internal table I_BSEG for every 10000 records.
DO.
FETCH NEXT CURSOR CURS
INTO TABLE I_BSEG PACKAGE SIZE PACKAGE_SIZE.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
ENDDO.
CLOSE CURSOR CURS.
LOOP AT I_BSEG.
TOT_REC = TOT_REC + 1.
IF I_BSEG-SHKZG = 'S'.
TOT_DMBTR = TOT_DMBRT + I_BSEG-DMBTR * -1.
ELSE.
TOT_DMBTR = TOT_DMBTR + I_BSEG-DMBTR.
ENDIF.
ENDLOOP.
WRITE: / 'TOTAL BSEG-DMBTR:', TOT_DMBTR,
/ 'TOTAL RECORD: ', TOT_REC.
END-OF-SELECTION.
Hope this will help.
Regards,
Ferry Lianto -
Does anybody know what system tables store the logs displayed in ST22 and SM37? Trying to programmatically read and display the logs.
Thanks a bunch for your help.Hi,
These are tables for Job scheduling
Once jobs are defined, they are stored in the R/3 database, in the following principal tables in the background processing system:
TBTCO: The job header table (job management data)
TBTCP: The job step table (individual processing steps in jobs) -to describe the detailed level for each job.
TBTCS: The control table for the time-driven job scheduler -
Is there any system table available to check no. of entries in the table?.
Hi
Is there any system table available to check the no of entries in the table.
Note : the table may be whether SAP table or Z-table.(All tables)
Regards
Raja.Hi Raja,
I don't think so. Instead, try to perform
SELECT count(*) FROM dbtab.
...to get the number of records of the table dbtab.
I hope this helps. Kind regards,
Alvaro -
How to get the Change Log Table name of the ODS from the system table
Hi,
I have a list of ODSs in the system and I am interested in finding the corresponding Change Log Table and the number of records in that table.
Can any one please tell me the name of the system table where this information is stored.
I dont want to get in this information manully (from the Contents tab of the ODS maintenane).
Regards,
Harikiran GunnalaHi
Go to SE16
Give the table name as "RSTSODS".
For User application field give CHANGELOG as input
and execute. You will get all the list of Changelog tables Along with below mentioned data
PSA
Version
To
Valid from
Object Status
Technical ODS name
Program Name
Maint Program
Object Name
Last changed by
UTC Time Stamp in Short Form
Partition number
Regards
Raj -
How can I find the schemas used in a database? Any system table contains?
How can I find the schemas used in a database?
Any system table contains?
I would like to know sql statement (dictionary object name) which tells the all schema s in a database like dba_users.Hello,
this SQL should help:
db2 "select schemaname from syscat.schemata" -
Is there a system table or V$ view that will show a user's last logon date?
Is there a system table or V$ view that will show a user's last logon date?
I'm using Oracle 9.2.0.7sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 31 12:44:42 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> desc user$
Name Null? Type
USER# NOT NULL NUMBER
NAME NOT NULL VARCHAR2(30)
TYPE# NOT NULL NUMBER
PASSWORD VARCHAR2(30)
DATATS# NOT NULL NUMBER
TEMPTS# NOT NULL NUMBER
CTIME NOT NULL DATE
PTIME DATE
EXPTIME DATE
LTIME DATE
RESOURCE$ NOT NULL NUMBER
AUDIT$ VARCHAR2(38)
DEFROLE NOT NULL NUMBER
DEFGRP# NUMBER
DEFGRP_SEQ# NUMBER
ASTATUS NOT NULL NUMBER
LCOUNT NOT NULL NUMBER
DEFSCHCLASS VARCHAR2(30)
EXT_USERNAME VARCHAR2(4000)
SPARE1 NUMBER
SPARE2 NUMBER
SPARE3 NUMBER
SPARE4 VARCHAR2(1000)
SPARE5 VARCHAR2(1000)
SPARE6 DATE -
How to hide system tables when using the Oracle SQL Developer?
Hi,
I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
Can anyone explain to me how to do these things?
Thanks,Hi,
I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
Kuljeet -
Which Logical data base has SAP System tables (EDI)
Hi,
Which Logical database has SAP System tables(related to EDI-Cross application).
Could you please any one share this your thoughts.
Points will be rewared.
Thanks,
SenthilHi,
you can search with se11 - where used list - logical database
A. -
How to reduce the size of System tables(RS*) in SAP BW?
Hi All,
We need to reduce the size of a system tables(RS*) in SAP BW system without impacting anything to system.
Could you please let us know is there any Global program/Function module to do the same.
If not if you know any individual program or other way to reduce the system table size it will be very much useful.
Sample System tables(RS*) are given below.
RSHIENODETMP
RSBERRORLOG
RSHIENODETMP~0
RSBMNODES
RSBKDATA
RSBMNODES~001
RSRWBSTORE
RSBMLOGPAR
RSBERRORLOG~0Sudhakar,
There are tables you can archive / clean up and then there are tables you cannot do anything about. For example - if your system has a million queries - the RSRREPDIR , RZCOMPDIR tables will be large.
The tables that typically get archived are :
1. BALDAT / BALHDR - application log tables
2. Monitor tables - search for Request archiving which will tell you how to archive the same
The other tables -
First you would have to understand why they are large in the first place ... if you have too many hierarchies - then some tables can be huge - delete some of the hierarchies you do not need and the table sizes should come down.
RSRWBSTORE - this is the internal store for workbooks - this will have the last executed version of the workbook stored in the table. This information is called when the workbook is executed without refreshing the variables - which is why you get the workbook output first and then get prompted to refresh the variables. -
No read access to system tables
Hi
i try to migrate access db to oracle and when testing connection it gives me error message says "no read access to system tables modify access db before retrying"
what to do?
thanks in advance.Access tab
For a connection to a Microsoft Access database, click Browse and find the database (.mdb) file. However, to be able to use the connection, you must first ensure that the system tables in the database file are readable by SQL Developer, as follows:
Open the database (.mdb) file in Microsoft Access.
Click Tools, then Options, and on the View tab ensure that System Objects are shown.
Click Tools, then Security, and, if necessary, modify the user and group permissions as follows: select all tables whose names start with Msys, and give the Admin user at least Read Design and Read Data permission on these tables. Save changes and close the Access database file.
Create and test the connection in SQL Developer. -
Please Let me know What is SAPHR System Table nuber ?
Hi,
All personnel administration tables start with PA and the infotype number behind it.
All personnel development/OM tables start with HRP and infotype (e.g. 1000) behind it.
All recruitment tables start with PB and infotype number behind it.
There also are HR tables that start with HRA, HPD, HRT, etc. The easy way to get a list is to use SAP's 'Application Hierarchy', transaction SE81 (select all HR modes in the tree that you are want a list of tables for, click on the 'Information System' button, under Abap Dictionary --> Basic Objs, double click on 'database tables', increase your 'maximun no. of hits' and execute).
Go to transaction se11...type in PA* do dropdown and enter, do the same for HRP* and you will have most of the HR transaparent Tables.
Transaction SE16 is also useful. As mentioned above, the PA infotype tables all begin with PA and are followed by the infotype number e.g. PA0001
PA* - PA infotype tables
PCL* - HR clusters
PB* - recruitment tables
PCERT - payroll posting runs
Another useful table is CATSDB for CATS, and PTEX2000 for the CATS transfer table for infotype 2001/2002. -
Hi,
Does anyone know the System Table where BAdI's are stored?
I mean, I want to write a Function Module which accepts
an internal table of BAdI Definition names (SE18) and the
Function Module returns an internal table of interfaces
used by the BAdi...
Pls Help.
Thanks in advance.Hi,
The BAdI database tables are
SXS_INTER -->Exit: Definition side: Interfaces
SXC_EXIT -->Exit: Implementation side: Assignment: Exit - Implementation
SXC_CLASS -->Exit, implementation side: Class assignment (multiple)
SXC_ATTR -->Exit: Implementation side: Attributes
These tables are always accessed by the views V_EXT_IMP and V_EXT_ACT.
Regards,
Tanveer.
<b>Please mark helpful answers</b>
Hey Anand, i remember abt that jco doc.. just have misplaced it.. will find it n shall mail u..
Message was edited by: Tanveer Shaikh -
On a UDF (on a system table) add a CFL (linked to a system table)
Hello,
I added a UDF to OITM, named say "XXX_RootOfPrj". It appears on the standard UDFs panel:
Users should type a project code (OPRJ.PrjCode) here.
For helping them I need to add a ChooseFromList on this UDF, linked to OPRJ.
So I added this line in the UDF definition:
oUserFieldsMD.LinkedTable = "OPRJ";
But when I Add() the UDF I get:
Errore -5002: Il campo 'Tabella collegata' dovrebbe essere formato da 8 car. alfanumerici senza val. standard validi
Which means more or less:
Error -5002: 'Linked table' field should be formed by 8 alphanumeric characters without standard valid values
Maybe is it impossible what I want to do? It's odd that I can link a UDT but not a system table...
Maybe should I use a workaround, like manually attaching a CFL on the form using UI API?Thanks Edy,
now I got it!
Create a query for the formatted search, like this:
select PrjCode, PrjName
from OPRJ
Add this user query to B1 as a saved query
Open Item Master Data, select your UDF, press Alt + Shift + F2
In the dialog select "Search in Existing User-Defined Values according to Saved Query", click on "Open Saved Query", select the saved query above and you are done.
Now the user can pick a valid project code from a CFL.
Kind regards
Maybe you are looking for
-
Rollback segment Error coming for 8 lacks Record while creating MV
Hi All, i am creating a materialized View and it gives us 8 lacks record but when we creates in production its fails due to rollback segment does not have enough space to handle it and it did not create the MV. can anyone help me out to resolve this
-
Moving Hard Disk From one Mac to Another
I am thinking of buying a new macbook. I have the C2D 2.16 Ghz right now. So if I would buy, lets say the new 2.4 Ghz model, could I just take the hard disk from the one I use now and put it into to the new Macbook? Would it boot up? Thanks!
-
Auto incremented field mobile device
hello, my colleague requires to make a mechanism in the mobile device (oracle lite client) where the primary field of a table is automatically incremented. according to the documentation in order to make that happen in a consistent manner so that all
-
Error: Exception in thread "main" java.lang.NoClassDefFoundError:
Hi I have seen this problem on a few forums but have not found an answer that works for me, sorry if missed it!! The command I am giving is: C:\Program Files\Rococo\ImprontoSimulator\examples\echo\bin>echo-server Exception in thread "main" java.lang.
-
Default account option is greyed out in Notes app
I'm running the latest version of yosemite. I have 3 different accounts - an iCloud - a gmail - and an exchange account. In previous version of OS X - if I recall correctly - I could select the "default account" in the notes app. However, that opt