A Data Dictionary stores information about all user-defined objects in the database. It usually comes with utilities to cross-reference all system components to each other.
Is there any way to query the data dictionary to get a list of tables in the order in which they should be populated.
I have a project where I am doing bulk inserts on a large number of tables and it would be hugely helpful if I could get a list of…
I am really new to Stackoverflow apologies for any mistakes.
I am working on Qlikview. It doesn't allow the columns which are of same name in two different tables. I used to create aliases for each and every column every time when i need to import…
I got three tables. user tag and user_tag. The primary of user is iduser+client, the one of tag is idtag+client. Now I want to create foreign keys for the table user_tag for those two primary keys without having client twice in there.
How can I do…
I'm running the following query:
SELECT * FROM all_tab_cols c
LEFT JOIN all_varrays v ON c.owner = v.owner
AND c.table_name = v.parent_table_name
AND c.column_name = v.parent_table_column
On a 10g server this takes ~2s, on 9i this takes…
Oracle 9i has nested tables, however it doesn't have the all_nested_table_cols sysview (like 10g and 11g) which lets me see what the columns are for these nested tables. How can I find this information on a 9i database?
I'm not entirely sure if this is a bug or something that I'm doing wrong, but here goes:
I'm trying to pull historical tablespace information from the DBA_HIST_TBSPC_SPACE_USAGE data dictionary view. The documentation says that the snap_id value is…
under the same schema, I got different number of tables from the following two queries:
select object_type,count(*) from user_objects group by object_type;
output: i got 17 for table from object_type column.
another query:
select count(*) from…
I need help in tuning following query involving querying from Oracle data dictionary ALL_OBJECTS.
SELECT OBJECT_NAME ,OBJECT_TYPE
FROM ALL_OBJECTS OBJ
WHERE (OBJ.OWNER ='HR')
AND (OBJ.OBJECT_TYPE IN ('TABLE','VIEW'));
I tried tuning query using…
I am running a SQL script I found online. The script generates a data dictionary from extended properties data. How can I save the results to an HTML file?
I prefer not changing the defaults, however I tried going into SQL server > Tools > Options…
I've got the following objects:
CREATE FUNCTION CONSTFUNC RETURN INT
DETERMINISTIC
AS
BEGIN
RETURN 1;
END;
CREATE TABLE "FUNCTABLE" (
"ID" NUMBER(*,0) NOT NULL,
"VIRT" NUMBER GENERATED ALWAYS AS ("CONSTFUNC"()) NULL
);
however, the functable…
I have this code to get two double from jSon:
Dictionary dict = this.GetDicFromInput();
Decimal tmpLat = (Decimal)dict["lat"];
Decimal tmpLon = (Decimal)dict["lon"];
This is GetDicFromInput:
private Dictionary…
How can we find all the variables in the package, that are not declared as anchored.
Suppose I have a package as shown below:
create or replace pkg body test
is
TYPE AnEntry IS RECORD (
term VARCHAR2(20), --TERM IS NOT ANCHORED
meaning…
I am fresher and just started learning about database. But one thing strikes me, being a PL/SQL I should know all the data dictionary table, rather than relying on the options given in TOAD, SQL Developer. Like explain plan, search an object, locks,…
I would like to know what query to use to determine if a particular table column exists in a given table.
For example I would like to know if the column named Address_1 exists in the table named Visits.
I think it is in a data dictionary table…