Use of the staging of prepareBulk table name parameter / completeBulk functions.
I try to load 1.6 billion triple in a semantic graph RDF instance. I use the prepareBulk / completeBulk approach described in "7.12 Bulk loading Using RDF graphic semantic support for Apache Jena. I loaded the triplets of. TTL.gz files in an intermediate table with prepareBulk according to the "example 7-10 loading data into the staging (prepareBulk) Table.
Example 7-10, I used "null" for the parameter "staged by the name of the table" at prepareBulk. I then ran a separate program to run completeBulk according to the "example 7-11 loading data into the table of staging in semantic networks (completeBulk). 7-11 watch also the use of "null" as default value for the parameter "staged by the name of the table. PrepareBulk operations seem to have executed successfully with a null value, staging table name. However, null does not seem to be a valid entry for the staging of completeBulktable name parameter. "CompleteBulk (null, null);" run displays the following error message:
Hit the exception ORA-00942: table or view does not exist
What is the relationship between "staged by the name of the table" Settings prepareBulk and completeBulk? Is null, a valid value for this parameter to prepareBulk, and if so what should be the corresponding value passed to completeBulk?
Hello
This seems odd. We have a test for this case. We will try this. By default, the intermediate table created is under the same user schema and table name would be "RDFB_" followed by the name of model.
Can you please verify the existence of such a table in your schema? There must be 1 b + lines. If so, you can directly proceed to the name of the table.
Since you are dealing with a good amount of data, the following should be helpful for performance:
(1) remove the indexes on the table of the application before you run the completeBulk call;
2) enable parallel DML before the call: oracle.executeSQL ("alter session enable dml parallel");
(3) use the parallel load options. An example is the following. Degree of parallelism is set to 4, and you will need to customize it to your own configuration.
"PARSE PARALLEL PARALLEL_CREATE_INDEX = 4 mbv_method = shadow"
Thank you
Zhe Wu
Tags: Database
Similar Questions
-
Diff between the Dimension and the staging of Dimension table?
Hi all
I would like to learn OBI Apps I'm Consultant OBIEE. While getting some travel queries. Please guide me on this path.
Thank youDimension ends with D and dimension staging table ends with the DS. Its very nomenclature everything used in the warehouse projects.
Table _DS will connect directly to the source and will be the largest part of the detials.
Table D will have the primary Key(Called as ROWWID which will be the foreign key in all the fact table which ot refres too) as well as the table _DS detials.Mark correct or useful if this can help,
Kind regards
Rayan VieiraPublished by: Rayan Vieira on June 5, 2013 16:36
-
Name of the table as parameter of function
Hi all
can someone help me with the below question...
I have a function like this:
* create or replace *.
* the 'IL_SUM_AVG_FN' function return number is *.
* the cursor c1 is *.
* Select sum_avg_val value *.
* from wel_10_tab *.
* where type = '1'; **
* number of v_sum; **
* number of v_count; **
* BEGIN *.
* v_sum: = 0; **
* v_count: = 0; **
* for i looped c1 *.
* if v_count = 0 then *.
* v_sum: = i.value; *
* other *.
* v_sum: = abs (i.value + v_sum); **
* end if; **
* v_count: = v_count + 1; **
* end of loop; **
* return v_sum; **
* END; **
now my requirement is like... I want to pass a value as a parameter to the function... say I'll or11 10 or 12
then he should change the table name in the cursor according to the parameter.i.e
If the setting is 10, it should be: select sum_avg_val value in wel_10_tab where type = '1';
If the setting is 11 it should be: select sum_avg_val value in wel_11_tab where type = '1';
If the parameter is 12, you must: select sum_avg_val value in wel_12_tab where type = '1';
parameter only has these three possible values...
How to get there?
Help, please...Sybrand already showed you how to manage the setting if you look at its code.
You need the dynamic sql statements because you can't pass the names of tables in pl/sql standard.
His example has dynamic sql.So now you must only adapt to your needs.
Default you may have a separate slider for each table name and choose the cursor based on the name of the table that is passed.
Those are your only 2 realistic options at this stage.
-
Newbie Question on the use of the size of a table in a schema
Hi all,
Newbie Alert!
I tried to work on the size of a table in a schema and struggled to get the exact number. Could someone help me please with getting an exact figure.
Thanks to all who responded!SELECT sum (blocks) * db_block_size/1024 MB of dba_extents
where owner = SCHEMA_OWNER and nom_segment = TABLE_NAME;http://Waqas-DBA.blogspot.com
-
The research of MySQL table names
Hello
I would like to find all the names of tables in a MySQL database using a simple HTML and PHP form. I'm stuck. I enclose the code I have so far. How can I request the search of all the names of the tables in the database?
Thanks in advance,
JohnThe game, February 12, 2009 01:51:54 + 0000 (UTC), "ArizonaJohn".
wrote: > Thanks for the help. When I try the code that you suggested, it gives me this error:
>
> Parse error: syntax error, unexpected T_FOREACH
>
> Looks like the loop "foreach" does not work. Any ideas?Well, I told you that it is not tested. ;-) He was missing a semicolon at the
end of the line that precedes the inner foreach. I had also neglected print
the openingtag. It has been tested and works:
$result = mysql_query ("SHOW TABLES FROM sand2 LIKE ' % $find %'") ")
or die (mysql_error ());
{if (mysql_num_rows ($result) > 0)}
{while ($table = mysql_fetch_row ($result))}
print '.Table: $table [0]
\n » ;
$r = mysql_query ("SELECT * FROM ' $table [0]'");
print '.\n » ;
\n » ;
{while ($Row = mysql_fetch_row ($r))}
print '."; \n » ;
{foreach ($row as $field)
print '.$field ";
}
print '.
}
print '.
}
} else {}
Print "nothing found";
}Gary
-
The child role of Table name in IOM comes blank
Hello
I work with connector DBAT and do a reconciliation of the target users are held properly and data reconciliation is also visible in the case of reconciliation, but the question is, the role name is not visible or an empty value is entered in the child table.
There are no errors in newspapers.
Is there something that I missed during the configuration. ???
I ran the planners for the reconciliation of the search and list of rights once again, but still no luck.
Everyone faces the similar question, or how I can fix this problem.
Thanks in advance.
Concerning
Ritesh Maddala
Hello
I've updated the solution here - Oracle Identity Management Help Engine of Ritesh: entry in the Child Table IOM - reconciliation target - is coming Blank.
Concerning
Ritesh Maddala
-
Drawbacks to the use of the child tables
Hi, in Oracle NoSQL-GSG - Tables.pdf page 22: "Note that there is no downside to using children tables [instead of folders] even for the trivial cases."
But currently, there are some disadvantages disadvantages, as illustrated in this simplified example:create a table - name personal
Add-field - type STRING-identification
Add-field - type STRING-familyName name
Add-check-domain - name postalAddress
Add-field - type STRING-city name
Add-field - type STRING-name street
output
Add-check-domain - name invoiceAddress
Add-field - type STRING-city name
Add-field - type STRING-name street
output
primary key - id field
output
Plan add a table-name Personal-wait# In addition, we define the child table having a similar structure to show the differences:
create a table - name Personal.Address
Add-field - type STRING-name of the type of
primary key - field type
Add-field - type STRING-city name
Add-field - type STRING-name street
output
add name Personal.Address table map - waitconnect store - name kvstore
«"set table - name personal - json ' {\"id\":\"1\', \"familyName\":\"Wu\'", \"postalAddress\ ': {\"town\":\"Rio\", \"street\":\"MyWay\ ""} ', \"Address\ ': {\"type\":\"delivery\', \"town\":\"Rio\'", \"street\":\"MyWay\"}}»
# Please, you could allow "instead of"in the syntax of CLI to avoid ugly \"hiding?"get table - personal name - enough
# Result is:
{
« id » : « 1 »,
"familyName": "Wu."
'postalAddress': {}
"City": "Rio."
"the street": "MyWay".
},
'invoiceAddress': null
}
# Address data (from child table) are not displayed (but it's a feature!)
get table - name Personal.Address - enough
0 rows returned
# address data was not stored (and no error message was displayed in the command put above)."set table - name Personal.Address - json' {\"id\":\"1\", \"type\":\"delivery\"", \"town\":\"Rio\" ", \"street\":\"MyWay\ "}".
get table - name Personal.Address - enough
{
« id » : « 1 »,
"type':"delivery. "
"City": "Rio."
"the street": "MyWay".
}
# Good, it is stored, but not 'nested' correctly:
get table - name personal - child Personal.Address - enough# This gives the person and her child in a sequence:
{
« id » : « 1 »,
"familyName": "Wu."
'postalAddress': {}
"City": "Rio."
"the street": "MyWay".
},
'invoiceAddress': null
}
{
« id » : « 1 »,
"type':"delivery. "
"City": "Rio."
"the street": "MyWay".
}Kids tables are normal tables that have a name containing a point and that inherit the keys to their anchestors. They have disadvantages compared to the record types.
At least the input/output JSON data is not as expected.
Hello
Child tables exist for two main reasons.
- They allow the related data modeling in independent lines, as I mentioned earlier. In a relational system do you this with another table and a join to get information at the same time.
- Data in table, they allow access to the mother and child in an efficient and transactional data. That you don't get modeling them as independent and make a join. This is probably the point you've been away.
Popping up a level of abstraction, Oracle DB NoSQL is a sharded system, designed to provide horizontal scaling with consistent performance. It does this by placing recordings of the pieces separated according to the brightness of the line key. All lines with the same brightness key are stored in the physical basis and are therefore available in a transactional manner.
In a first level table (i.e. one without a parent) the brightness key is either explicitly set or it is precisely its primary key. The brightness of a child table key is always key brilliance of its parent. This means that if you have a table person with a primary key of '1' then all its child table lines who share this part of their primary key (e.g. <"1", "work_address"="">, <"1", "home_address"="">, etc.) are accessible to all, in the same transaction - that works for multiGet and updates, which can be done with lists of TableOperation.
You're trying things with the CLI, which works, but is not the richest way to access the system, and is of course confusing sometimes."1",>"1",>
-Child flag you saw in the CLI is not there to specify the relationship between the table of the child, but rather to indicate that you want to get records from this table as well. For example, if you have a person parent table and child table address and that you only want the parent lines that you do:
get table - name person
If you want to get the lines both person and address you
get table - name person-child address (or Person.Address, I do not remember offhand)
To do a specific identity, you do
"get table - name person - child address - json ' {'id': '1'}"
Is - this make more sense?
Kind regards
George
-
The same POPup can be used for the two buttons
Hi all
I'm looking for an application where I need to use the same popup for two different buttons. This popup has a form of the ADF. I want to use for the Insert on a table of the ADF operation. The requirement is something like below
A JSF page should have an ADF read only table with 3 buttons Insert, read, delete respectively. Buttons Insert and should be using popup which the user can enter data and display the data respectively. I am
way to a form of the ADF for the insert PopUp. Now the problem is when the user selects a row in the table and click on the View button it should open a popup with read only form displaying the data from the selected row. For this I use the
same popup which I use for insertion of information by changing properties readonly or I have to create a separate popup for the purpose of seeing it please help me out in that.
Thanks in advance.
Published by: 959766 on November 6, 2012 10:11You can use the same popup...
Timo
-
How can I get the name of the package where a table is used
Hello... Hello...
How can I know the name of the package or procedures where a particular table is used?
is there a such sql query, I can get the names?It should work. Not tested.
SELECT * FROM USER_DEPENDENCIES WHERE TYPE LIKE 'PACKAGE%' AND REFERENCED_TYPE = 'TABLE' AND REFERENCED_NAME = 'YOUR_TABLE_NAME' --Replace with the table name you are looking for
G.
Edited by: g. on February 23, 2011 12:42 AM
-
Table names are stored in a separate table; How can I use the domain as table name?
Dear Experts,
My version of oracle is,
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0-Production
AMT for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
I stored the table names in a separate table as
Table name: all_table
Fields are: table_id, table_name, desc
record of the sample: 1, EMP, EMPLOYMENT DETAILS
Now I want to select all the contents of a perticular table, his name is all_table.
(ie)
Select * from (select table_name from all_table where table_id = 1);
But it is not listing the details of the EMP table. Its poster simply the name of the field "EMP".
Please help me in this regard.
Hello
Whenever you make dynamic SQL statements, you must place the dynamic whole statement in a single string variable. When debugging, display this string before running it. If you get a runtime error that will show you the statement he makes, which often made the obvious cause. For example:
DECLARE
CURSOR c IS
SELECT table_name
From user_tables;
CNT NUMBER;
sql_txt VARCHAR2 (1000);
BEGIN
FOR ut IN t
LOOP
sql_txt: = 'SELECT COUNT (*).
|| « DE » ' || t.table_name | '"';
dbms_output.put_line (sql_txt |) "= sql_txt"); -For debugging
EXECUTE IMMEDIATE sql_txt INTO cnt;
dbms_output.put_line (' Table: ')
|| t.table_name
|| ' ('
|| CNT
|| "lines)"
);
END LOOP;
END;
/
You can comment the put_line extra call when you are convinced that sylvie statement works.
If you have non-standard table names (for example, names that contain spaces) you must place the names of the tables in double - quotes, as I did above.
-
Does anyone know how pragrammatically change the name of the font in a table?
I want to programmaticaly change the font of a table using Labview 2011 is possible tha?
I can't find any other property as text-> name of the font...
Use
-2-2
Active cell.
Ben
-
Get the only table name in model executing the revese engineer but columns do not come
Get the only table name in model executing the revese engineer but columns do not come. I used the standard procedure. Please let me know why I am not getting column in my model.
I have attached the screen shot for the same thing.
This is a table or a synonym? In the case of synonym or try to add the property as it appears below thread.
Reverse engineering a synonym in ODI 11 G.
Or maybe go with personal setbacks.
-
Create procedure upsert (name of the existing table, incoming table name)
Is it possible to create a procedure that makes a merge (upsert) with only two parameters:
- Existing Table name - name of table that will have data merged into it.
- Incoming Table name - name of the table that has developed data day/news.
The method would be:
- Use primary keys on the "existing" table as the condition links
- Fact and update if exists and insert new
- no record
- no clues
- no removal clause
Oracle 11g
MERGE < tip > < table_name >
USING < table_view_or_query >
(< CONDITION >)
WHEN MATCHED THEN < update_clause >
DELETE < where_clause >
WHEN NOT MATCHED THEN < insert_clause >
[ERRORLOG < log_errors_clause > < reject limit < integer | unlimited >];
< table_name > - from input parameter
< table_view_or_query > -socket input parameter
< condition > - primary key links (how search a single/multiple primary keys and return the list?)
< update_clause > - update all columns (other than KP, how to get and use a dynamic list of columns)
< where_clause > - not used
< insert_clause > - insert new records for all columns (including the PK (s))
declare
p_source varchar2 (30): = "EMP_X";
p_target varchar2 (30): = "EMP_Y";
query varchar2 (32000);
function get_cols (p_table in varchar2) return varchar2 is
VARCHAR2 (32000) retval;
Start
Select the Group (order of column_id) listagg (column_name, ',')
in retval
of user_tab_cols
where table_name = p_table
Table_name group;
Return retval;
end;
function get_keys (p_table in varchar2) return varchar2 is
VARCHAR2 (4000) retval;
Start
Select listagg (cc.column_name, ',') in the Group (order by cc.position)
in retval
from user_constraints c,.
user_cons_columns cc
where cc.table_name = p_table
and c.constraint_type = 'P '.
and cc.table_name = c.table_name
and cc.constraint_name = c.constraint_name
C.table_name group;
Return retval;
end;
function merge (p_merge1 varchar2, p_merge2 varchar2, p_link varchar2) return varchar2 is
Merge1 varchar2 (32000): = p_merge1 | «, » ;
merge2 varchar2 (32000): = p_merge2 | «, » ;
VARCHAR2 (32000) retval;
Start
then merge1 is not null
loop
retval: = retval | » t.'|| substr (Merge1, 1, InStr (Merge1, ',') - 1) |'s =.' | substr (merge2, 1, InStr (merge2, ',') - 1);
Merge1: = substr (merge1, instr(merge1,',') + 1);
merge2: = substr (merge2, instr (merge2, ',') + 1);
If merge1 is not null then
retval: = retval | p_link;
end if;
end loop;
Return retval;
end;
Chopper (p_cols p_keys varchar2, varchar2) return varchar2 is
passes varchar2 (32000): = ', '. p_cols | «, » ;
keys varchar2 (32000): = ', '. p_keys | «, » ;
VARCHAR2 (32000) retval;
Start
While the keys! = «, »
loop
If instr (passes, substr (keys, 1, instr(keys,',',1,2))) = 1 then
cols: = substr (collars, instr(cols,',',1,2));
on the other
cols: = substr (passes, 1, instr (passes, substr (keys, 1, instr(keys,',',1,2))) | substr (collars, InStr (collars, ',', InStr (passes, substr (Keys, 1, InStr(Keys,',',1,2))), 2) + 1);)
end if;
keys: = substr (keys, instr(keys,',',1,2));
end loop;
return trim (both ',' collar);
end;
Start
query: = 'merge'. p_target |' t ' |' using (select ' | get_cols (p_source): ' from ' | p_source |') s '.
' on ('|) Merger (get_keys (p_target), get_keys (p_source), 'and') |') ' ||
"When matched then update set ' | '. Merger (Chopper (get_cols (p_target), get_keys (p_target)), Chopper (get_cols (p_source), get_keys (p_source)), ',').
«When not matched then insert ('|)» get_cols (p_target) |') values (s.'|) Replace (get_cols (p_source),', ', ', s') |') ';
dbms_output.put_line (Query);
end;
Fusion in EMP_Y t using (select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO EMP_X) s on (t.EMPNO = s.EMPNO and t.ENAME = s.ENAME) when matched then update set t.JOB = s.JOB, t.MGR = s.MGR, t.HIREDATE = s.HIREDATE, t.SAL = s.SAL, t.COMM = s.COMM, t.DEPTNO = s.DEPTNO when not matched then insert (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO) values (s.EMPNO, s.ENAME, s.JOB, s.MGR, s.HIREDATE, s.SAL, s.COMM, s.DEPTNO)
Concerning
Etbin
-
Using variables such as table names. Ideas for alternative designs
Hello
I am the design of an application that uses synonyms to pull information from the 'client' DBs via links from DB. Synonyms are created with a DB_ID in name (example: CUSTOMER_100, CUSTOMER_200... where the 100 and 200 are DB IDs of 2 separate DBs customer.)
I have a procedure that selects data in the synonym based on what DB_ID is passed to the procedure. I want to be able to perform this procedure for any entered DB_ID. I know now I can't use variable for the table names names and using EXECUTE IMMEDIATE does not seem suitable for what I'm trying to do.
Does anyone have suggestions or re-design options, I could use to achieve this generic procedure which will select a certain synonym based on the information of DB input parameters? Thank you.
CREATE or REPLACE PROCEDURE CUSTOMER_TEST (p_host IN VARCHAR2, p_db_name IN VARCHAR2, p_schema in VARCHAR)
IS
v_hostname VARCHAR2 (50): = UPPER (p_host);
v_instance VARCHAR2 (50): = UPPER (p_db_name);
v_schema VARCHAR2 (50): = UPPER (p_schema);
v_db_id NUMBER;
v_synonym VARCHAR2 (50);
CURSOR insert_customer
IS
SELECT
c.customer_fname,
c.customer_lname
OF v_synonym_name c;
BEGIN
-MADE BASED ON INPUT PARAMETERS DB_ID
Select d.db_id
in v_db_id
of t_mv_db_accounts ac.
t_mv_db_instances I,.
t_mv_dbs d,
t_mv_hosts h
where ac.db_ID = d.db_ID
and i.db_ID = d.db_ID
and i.HOST_ID = h.host_id
and upper (H.HOST_NAME) = v_hostname
and upper (D.DB_NAME) = v_instance
and upper (Ac.ACCOUNT_NAME) = v_schema;
-ADD DB_ID TO NAME SYNOYNM
v_synonym: = 'CUSTOMER_ | v_db_id;
FOR cust_rec IN insert_customer
LOOP
INSERT INTO CUSTOMER_RESULTS (First_Name, Last_Name)
VALUES (cust_rec.customer_fname, cust_rec.customer_lname);
END LOOP;
COMMIT;
END;
/
RGS,
Rob
EXECUTE IMMEDIATE ' INSERT IN CUSTOMER_RESULTS (First_Name, Last_Name) SELECT customer_fname, customer_lname FROM ' | v_synonym;
-
Can I use * and the list of the column names in a select query
PLSQL again. Can I use * and the list of the column names in a select query, i.e. Select *, col1, col2 from Mytable. When I do that my questions tend to the bomb. Can do in other databases.
Thank you
Mike
Hi, Mike,.
If there is something else in the more SELECT clause *, then * must be qualified with a table name or alias.
For example:
SELECT Mytable. *, col1, col2
FROM MyTable;
Maybe you are looking for
-
Satellite 1800-700 - f3d failed installation of Windows me
HelloI really need help.I'm trying to reinstall Windows ME on my S1800. It formats the computer and when the installation is gona start. It stops just before she even coms to 1% and it failure f3d know? I use the CD I got whit the computer when we bo
-
Satellite R630 - 12G - FN key works only partially
Hey guys! My satellite was working fine... but then suddenly one day...the fn did not show the options at the top of the screen... but I can still IE change the contrast or volume... on the other hand I can't spend my wifi or lock the mouse mat. So o
-
Analysis application does not work for HP Officejet 6500 has more.
My OS is Windows Vista 64-bit. Image of Windows service is not running. I followed the steps to start the dependency services. Still will not start. Error message 1068. Any suggestions?
-
My computer was one replacement for another (old computer), I used years when a friend gave me his OLD PC and installed my IDE in this document, a MAXTOR 120 and it works very well but she has some weird occurrences and like, I tried to get the paper
-
Why my computer keep telling me that an unauthorized change was made to Windows?
Almost everytime I start my computer, I get to the login screen, connection & then I get an error indicating that an unauthorized change has been filed with Windows. Then it gives me the ability to check online for more information. I then close th