Bugs or features of NoSQL create table
Hi, I used the runadmin CLI command to create a pattern with several tables and child tables (create table), reflecting our logistics OAGIS model BO.
The following clothe are bugs in runadmin, I think:
* children tables have a key with the same name as the name of the key of one of their parents? Why?
adding a few records (add-registration-field) of the same structure (structure to address typical e.g.a) only works for the first, for example postalAddress. When you add an invoiceAddress of the same type, the error "Unknown Exception: class org.apache.avro.SchemaParseException ' appears at the output. Children tables for that aid works. With the help of several records from a same simple structure works, and I think that the error occurs when the records have a field with the same name as the key of the table.
* In addition, I miss a feature like - AutoNumber to use keys by default. It is available or planned or displaced in the application layer?
Hello
Some good questions.
| * children tables have a key with the same name as the name of the key of one of their parents? Why?
As you are suggesting this restriction exists only for the fields that are part of the primary key. A key field in a child table may have the same name as a key field in the parent. This restriction makes a number of simpler and more efficient internal implementation details. Do you have a use case where it is annoying?
| adding a few records (add-registration-field) of the same structure (structure to address typical e.g.a) only works for the first, for example postalAddress. When you add an invoiceAddress of the same type, the error "Unknown Exception: class org.apache.avro.SchemaParseException ' appears at the output. Children tables for that aid works. With the help of several records from a same simple structure works, and I think that the error occurs when the records have a field with the same name as the key of the table.
A specific example of this behavior would be helpful. It may be a bug.
| * In addition, I miss a feature like - AutoNumber to use keys by default. It is available or planned or displaced in the application layer?
It is the responsibility of the application.
Kind regards
George
Tags: Database
Similar Questions
-
ORA-00439: feature not enabled: Flashback Table
If someone could help because I do not know why I get the error at the end of the script.
Thank you very much
CODD> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for 32-bit Windows: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production CODD> create table test (cola number) enable row movement; Table created. CODD> drop table test; Table dropped. CODD> select original_name, operation, ts_name, droptime from recyclebin; ORIGINAL_NAME OPERATION TS_NAME DROPTIME -------------------------------- --------- ------------------------------ ------------------- TEST DROP USERS 2014-01-08:13:08:27 CODD> flashback table test to before drop; Flashback complete. CODD> insert into test values(10); 1 row created. CODD> insert into test values(20); 1 row created. CODD> select current_timestamp from dual; CURRENT_TIMESTAMP --------------------------------------------------------------------------- 08-JAN-14 13.10.50.330000 +00:00 CODD> insert into test values(100); 1 row created. CODD> flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00'; flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00' * ERROR at line 1: ORA-00439: feature not enabled: Flashback Table CODD> commit; Commit complete. CODD> flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00'; flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00' * ERROR at line 1: ORA-00439: feature not enabled: Flashback Table
You use the Express edition. This includes no Flashback Table.
-
Equivalent of CREATE TABLE syntax for functions?
Hello
I am trying to update my functions with a copy of another data base. Y at - it an equivalent syntax in CREATE TABLE as for functions? Basically, I want to drop my old feature in my dev environment and re-create it with the version on prod. I need to use it in a loop for all functions in prod, if just by using the statement plsql itself will not solve my problem.
Thank you
JohnHi, John,.
Discover the package supplied by Oracle dbms_metadata.
In addition, the source code for procedures, functions and packages is available in user_source, which you can query like this:
SELECT text FROM user_source WHERE name = 'PROC_X' AND type = 'PROCEDURE' ORDER BY line ;
-
Hello.. I got this error when trying to create a database
Conn Execute.vi-> DB tools create Table.vi--> CreateDatabase.vi
Exception occurred in the Microsoft Office Access database engine: syntax error in the statement CREATE TABLE in Conn Execute.vi-> DB tools create Table.vi-> CreateDatabase.vi I can't open your vi, but in many cases, the syntax error is caused by the invalid table or field names (reserved words, spaces or invalid characters). In this case, you can change the names; Alternatively, you can frame them square brackets: [my_column_name].
If you open the DB create Table.vi-> Conn Execute.vi block diagram, you can enter the full text of the SQL query and post, so we can take a look.
-
'Create table' is not possible with Jet.OLEDB.4.0
I use LabVIEW Toolkit DB to access databases.
I opened an access database of microsoft with the connection string "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\test3.accdb".
When I exeucted
create table leq_octave_5min (recorded_time DATETIME CONSTRAINT PRIMARY KEY pk1,
Leq5 LEQ5 FLOAT NOT NULL CONSTRAINT,
Min MIN FLOAT NOT NULL CONSTRAINT,
Max MAX FLOAT NOT NULL CONSTRAINT,
L05 FLOAT L05 CONSTRAINT NOT NULL,.
L10 FLOAT L10 CONSTRAINT NOT NULL,.
L50 FLOAT L50 CONSTRAINT NOT NULL,.
L.90 L.90 FLOAT CONSTRAINT NOT NULL,
L95 FLOAT L95 CONSTRAINT NOT NULL,.
Us01 us01 FLOAT NOT NULL CONSTRAINT,
EN02 EN02 FLOAT NOT NULL CONSTRAINT,
Fr03 FR03 FLOAT NOT NULL CONSTRAINT,
Fr04 fr04 FLOAT NOT NULL CONSTRAINT,
Fr05 fr05 FLOAT NOT NULL CONSTRAINT,
Fr06 fr06 FLOAT NOT NULL CONSTRAINT,
Fr07 fr07 FLOAT NOT NULL CONSTRAINT,
Fr08 FR08 FLOAT NOT NULL CONSTRAINT,
Fr09 FR09 FLOAT NOT NULL CONSTRAINT,
Fr10 fr10 FLOAT NOT NULL CONSTRAINT,
Fr11 FR11 FLOAT NOT NULL CONSTRAINT,
Fr12 FR12 FLOAT NOT NULL CONSTRAINT,
Fr13 FR13 FLOAT NOT NULL CONSTRAINT,
Fr14 FR14 FLOAT NOT NULL CONSTRAINT,
Fr15 FR15 FLOAT NOT NULL CONSTRAINT,
Fr16 FR16 FLOAT NOT NULL CONSTRAINT,
Fr17 FR17 FLOAT NOT NULL CONSTRAINT,
Fr18 FR18 FLOAT NOT NULL CONSTRAINT,
Fr19 FR19 FLOAT NOT NULL CONSTRAINT,
Fr20 FR20 FLOAT NOT NULL CONSTRAINT,
Fr21 FR21 FLOAT NOT NULL CONSTRAINT,
Fr22 FR22 FLOAT NOT NULL CONSTRAINT,
E23, e23 FLOAT NOT NULL CONSTRAINT,
Fr24 FR24 FLOAT NOT NULL CONSTRAINT,
Fr25 fr25 FLOAT NOT NULL CONSTRAINT,
Fr26 FR26 FLOAT NOT NULL CONSTRAINT,
Fr27 fr27 FLOAT NOT NULL CONSTRAINT,
Fr28 FR28 FLOAT NOT NULL CONSTRAINT,
Fr29 FR29 FLOAT NOT NULL CONSTRAINT,
Fr30 FR30 FLOAT NOT NULL CONSTRAINT,
status TEXT (2) st NOT NULL CONSTRAINT)I got an error saying "error ADO: 0x80040E14.
I have not had any problems with an ODBC driver.
Why make such a mistake with Jet OLE DB?
A web page was told that MIN and MAX are reserved words of Jet 4.0.
So I defined with [and].
Then, after it works.
-
Creating table and use - part 1
be no difficulty with arrays in C, etc. but creating tables of LabVIEW poisoned me. Unfortunately, the heart I sure table labs start out with a table already in place is not much help either. For example, in the attachment, I have a simple loop generating a series of figures that I want to put in a picture. I place a table on the block diagram and its type sucks and I can't find a good way to change it. The textbook says to drag an object in the table on the front panel. So, how is - a hang out an integer in an array?
Thank you
JVH
jvh75021 wrote:
Thanks for the post. Where did you get the constant that you drag in the table?I'll try to help in this form:
Darren wrote:
If you know the name of the object you want, you don't have to look at all the pallets.
Amazing that NEITHER use YouTube for video hosting, because it is blocked by the firewall of our company.
Andrey.
-
I am wanting to save a string of text in a sql database - lite which is called "message1." I press save button to call this code in my interlocutor.
URI myURI = URI.create("file:///SDCard/flash.db"); DatabaseFactory.open(myURI); Statement st = d.createStatement( "CREATE TABLE Restaurant (Experience TEXT)" ); Dialog.alert("Here1!"); st.prepare(); st.execute(); st.close(); Statement st1 = d.createStatement("INSERT INTO Restaurant(Experience) VALUES ('message1')"); st1.prepare(); st1.execute(); st1.close(); d.close(); Dialog.alert("Your info was saved!");
I can't even my Dialog statement to appear? I do something wrong in the line where I create the table?
Statement st = d.createStatement ('CREATE TABLE Restaurant (experience TEXT)');
Because when I move the dialog statement before this line... I can see the dialog box
Database db; URI myURI = URI.create("file:///SDCard/flash.db"); db = DatabaseFactory.open(myURI); Statement st= db.createStatement("CREATE TABLE 'Restaurant' ( " + "'Experience' TEXT)"); st.prepare(); st.execute(); st.close(); Statement st1 = db.createStatement("INSERT INTO Restaurant(Experience) VALUES ('Message1')"); st1.prepare(); st1.execute(); db.close();
I checked the code and its working very well.
----------------------------------------------------------
feel free to press the congratulations on the left side to thank the user who has helped you.
Please mark as resolved messages if you found a solution. -
FREELISTS and FREELIST GROUPS of CREATE TABLE
My oracle 10g, create table statement is below:
CREATE TABLE S005. Test
(
AAA char (1)
)
PCTFREE 0
STORAGE)
FREELISTS 10
FREELIST GROUPS 20
)
LOGGING
NOCACHE
NOPARALLEL
NOMONITORING;
After performing this sql, I have a query table USER_TABLES but FREELISTS and FREELIST_GROUPS fields show nothing.
In my view, FREELISTS value must be 10, and FREELIST_GROUPS should be 20. How to retrieve these values?
Thank you very much
-
Create table ORA-01031: insufficient privileges
SQL > indicate user USER is 'TEST_RPT.
SQL > CREATE TABLE mytest (id NUMBER); - it does not work
CREATE TABLE mytest (id NUMBER)
* ERROR at line 1: ORA-01031: insufficient privileges
SQL > CREATE TABLE TEST_RPT.mytest (id NUMBER).
Table created. SQL >
SQL > select * from session_privs;
PRIVILEGE
----------------------------------------
ANY PROCEDURE DEBUG
DEBUGGING SESSION CONNECT
CREATE INDEXTYPE
OPERATOR TO CREATE
CREATE THE TYPE
CREATE THE TRIGGER
CREATE PROCEDURE
CREATE SEQUENCES
CREATE VIEW
CREATE SYNONYM
CREATE THE CLUSTER
CREATE TABLE
UNLIMITED TABLESPACE
ALTER SESSION STATEMENT
CREATE SESSION
Try this:
SELECT USER, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') FROM DUAL;
The two identical values? CURRENT_SCHEMA is what will determine the owner of the table you create, if you do not specify an owner.
This can be changed by
ALTER SESSION SET CURRENT_SCHEMA = whatever_you_want_it_to_be;
-
epengs.dB (ENG) + error CREATE TABLE PS_1099C_CUST_DATA
PT 8.54.10FSCM 9.2 (picture 13)
SQL Server 2008 (64-bit)
We get below error when we are in the stages of the creation of the DB via DM scripts.
Started the: Tue Nov 17 02:10:54 2015
Release of Data Mover: 8.54.10
Database: FSDMO92 (ENG)
Input file: E:\FSDMO92\data\epengs.db (ENG)
Import 1099C_CUST_DATA
Create Table 1099C_CUST_DATA
-SQL error. Position of the error: 0 return: 8601 -.
[Microsoft] [SQL Server Native Client 10.0] [SQL Server] Column, parameter, or variable #4: could not find the PSDATE data type.
[Microsoft] [SQL Server Native Client 10.0] [SQL Server] Instructions could not be prepared. (SQLSTATE 37000) 8180
CREATE TABLE PS_1099C_CUST_DATA (CUST_ID varchar (15) NOT NULL, TIN varchar (20) NOT NULL, TAXPAYER_ID varchar (14) is NOT NULL, ASOF_DATE PSDATE NULL, decimal ENTRY_AMT (26, 3) NOT NULL, decimal INTEREST_EXPENSE (26, 3) NOT NULL, Name1 varchar (40) NOT NULL, NAME2 varchar (40) NOT NULL, NOT NULL of the varchar (55), of ADDR_LN1 ADDR_LN2 varchar (55) NOT NULL) , ADDR_LN3 varchar (55) NOT NULL, ADDR_LN4 varchar (55) NOT NULL, CITY varchar (30) NOT NULL, NOT NULL of the varchar (6) State, POSTAL varchar (12) NOT NULL, TEL varchar (24) is NOT NULL, NAME varchar (50) NOT NULL, Name3 varchar (40) NOT NULL, name4 varchar (40) NOT NULL, CITY3 varchar (30) NOT NULL, Address1 varchar (55) NOT NULL , State3 varchar (6) NOT NULL, POSTAL...
Error: Unable to process create statement for 1099C_CUST_DATA
Ending: Tue Nov 17 02:10:56 2015
Unsuccessful endCannot find the data type PSDATE comes here. Looks like one of the required scripts has not been executed. It has been long since I am on a site of SQL Server, but I understand the substance of this issue. PeopleSoft creates a customized in SQL Server PSDATE data type which is an extension of the date format.
Rather than to point you to the script, I suggest you go back and find where this prerequisite is necessary and make sure that you are not lacking in any other required component.
-
How to force the data type in create table field?
Hi all
I need to force my table to create as follows
Create table XYZ
(Test varchar2 (10 CHAR)
...
);
When I run my Interface the script is
Create table XYZ
(Test varchar2 (10))
...
);
and the DBMS translated into
Create table XYZ
(Test varchar2 (10 BYTE),
...
);
I have the same problem with I$, C$, and so on.
Best regards
Marco
Hi all
I fix my problem:
In Phisical Tecnology, under ORACLE Tecnology, data TYPE, I modified the definition of VARCHAR2 in VARCHAR2(%L CHAR).
(Before it was VARCHAR2 (%)).
Thank you all.
Marco
-
Need help - multilevel nested table - create table problem
Hello
My version of oracle db: 11g
I just created a table that contains a nested multi-level table.
Here is the code:
create or replace type sdef_t_nt_empNames21 is table of the varchar2 (50);
create or replace type sdef_ot_SCmarks21 as an object (number of physics, chemistry number, number of Biology);
create or replace type sdef_t_nt_SCmarks21 is table of the sdef_ot_SCmarks21;
create or replace type sdef_ot_allsubmarks21 as an object (eid, eng, math, sc sdef_t_nt_SCmarks21 number number);
create or replace type sdef_t_nt_dep_m_info21 is table of the sdef_ot_allsubmarks21;
create the table nt_dep21
(number of fact
, dname varchar2 (50)
c_sdef_t_nt_empNames21 sdef_t_nt_empNames21
c_sdef_t_nt_dep_m_info21 sdef_t_nt_dep_m_info21)
nested as NT_c_sdef_t_nt_empNames21 table c_sdef_t_nt_empNames21 store
store table nested like NT_c_sdef_t_nt_dep_m_info21; c_sdef_t_nt_dep_m_info21 <-I know that the problem is here.
TRACE OF THE ERROR:
Error at startup on line: 13 in the command.
create the table nt_dep21
(number of fact
, dname varchar2 (50)
c_sdef_t_nt_empNames21 sdef_t_nt_empNames21
c_sdef_t_nt_dep_m_info21 sdef_t_nt_dep_m_info21)
nested as NT_c_sdef_t_nt_empNames21 table c_sdef_t_nt_empNames21 store
Nested table c_sdef_t_nt_dep_m_info21 (sdef_t_nt_SCmarks21) store as NT_c_sdef_t_nt_dep_m_info21
Error report-
SQL error: ORA-00904: invalid identifier
00904, 00000 - '% s: invalid identifier '.
* Cause:
* Action:
PS: I'm just solve a problem given to me by some1, is not a practical implementation, I'm just trying to get through
I'm sure that some1 could help me with this, I have searched a lot of this problem but could not find my answer, please help me.
Concerning
Rahul
SQL > create table (nt_dep21)
Did number 2,
3 dname varchar2 (50).
4 c_sdef_t_nt_empNames21 sdef_t_nt_empNames21,
c_sdef_t_nt_dep_m_info21 5 sdef_t_nt_dep_m_info21
6 )
store c_sdef_t_nt_empNames21 7 nested as NT_c_sdef_t_nt_empNames21 table
store c_sdef_t_nt_dep_m_info21 8 table nested as NT_c_sdef_t_nt_dep_m_info21)
9 table nested as NT_sc sc store
10 )
11.Table created.
SQL >
SY.
-
COPY OF DB1 to DB2 CREATE TABLE...
If I run script (3) in the database of and remove (-), it will run. But when I turn into a COPY OF DB1 to DB2 (my example uses DB1 to DB1 for you) and try and run - it returns immediately and does not create the table in the database TO. And I do not get an error.
I'm looking for 40 + combos 3 different characters but the characters are not separated in the table, it's just all crushed together. I try so to analyze the data, and then look 3 character codes. (I know it's a ugly script).
Are there limits using a script to COPY OF DB1 to DB2? For me, it was mentioned that there are too many characters in my select statement. If this is the case, anyone have any suggestions?
Thank you in advance... Shelli
--(1) CREATE TABLE RPO_EX
create table rpo_ex)
EMP varchar2 (25).
option_group varchar2 (100));
--(2) INSERT SOME SAMPLE DATA INTO THE RPO_EX TABLE
insert into rpo_ex values ("Gary", "AL0AQ9ATHAT8AXJAYGCF5CJ2DCPDR5EF7FE2FE9FHOF46GGCGW6G7Q");
insert into rpo_ex values ("Gary", "H2GIO3I15J55KA1KR1LALLTGMAHMYANP5NT7Q5URA6R6WR9NSLMTUJ");
insert into rpo_ex values ("Gary", "UDDUE1UPFUQAU2KU80VH9VK3VRGVRHVRJVRKVRLVRMVRNVRRVT7V8D");
insert into rpo_ex values ("Gary", "WMFXFE1SD1SZ4AA5A76SU7SU8GR9GR9L3");
insert into rpo_ex values ('Craig', 'AL0AQ9ATHAT8AXJAYGCJ2DCPDR5EF7FE2FE9FHOGANGGCGM3HHMIO3');
insert into rpo_ex values ('Craig', 'I15J55KR1LALLCVMAHMYANP5NT7Q5URA6R6WR9NSLMS08TUJUDDUE1');
insert into rpo_ex values ('Craig', 'UPFUQAU2KU80VH9VRGVRHVRJVRKVRLVRMVRNVRRVT7V8DWMFYM81SA');
insert into rpo_ex values ('Craig', '1SZ4C15A76SA7SA8GM9GM9L3');
insert into rpo_ex values ('Fred', '1SZ4AA5A76SA7SA8GM9GM9L3');
insert into rpo_ex values ('Fred', 'AL0AQ9ATHAT8AXJAYGCJ2DCPDR5EF7FE2FE9FHOGBAGGCGM3H2GIO3');
insert into rpo_ex values ('Fred', 'I15JE5KR1KTILALLCVMAHMYANP5NT7Q5WRA3R6WR9NSLMTUJUDDUE1');
insert into rpo_ex values ('Fred', 'UPFUQAU2KU80VH9VK3VRGVRHVRJVRKVRLVRMVRNVRRVT7V8DWMF1SA');
insert into rpo_ex values ('Frank', 'AL0AQ9ATHAT8AXJAYGCF5CJ2DCPDR5EF7FE2FHOGGCGW6G1MH2GIO3');
insert into rpo_ex values ('Frank', 'I15J55KR1LALLTGMAHMYANC7NP5NU5RA6R1UR6WR9NSLMTUJUDDUE1');
insert into rpo_ex values ('Frank', 'UPFUQAU2KU80VH9VK3VRGVRHVRJVRKVRLVRMVRNVRRVT7V8DWMFXFE');
insert into rpo_ex values ('Frank', 'YF51SC1SZ4AA5A76SA7SA8GM9GM9L3');
insert into rpo_ex values ("Jim", "4C15A76SA7SA8GM9GM9L3");
insert into rpo_ex values ("Jim", "AL0AQ9ATHAT8AXJAYGCJ2DCPDR5EF7FE2FE9FHOGGCGM3GTRHHMIO3");
insert into rpo_ex values ("Jim", "I15JE5KR1KTILALLCVMAHMYANP5NT7Q5WRA3R6WR9NSLMTUJUDDUE1");
insert into rpo_ex values ("Jim", "UPFUQAU2KU80VH9VRGVRHVRJVRKVRLVRMVRNVRRVT7V8DWMF1SA1SZ");
sqlplus usr/pw@db1 @ 'copy_rpo_ex.sql' usr/pw@db1 usr/pw@db1
--(3) COPY OF THE TABLE CREATION SCRIPT
whenever sqlerror exit rollback sql.sqlcode
SET ARRAYSIZE 5000
SET COPYCOMMIT 20
set linesize 4000
TERMOUT OFF SET
COPY OF usr/pw@db1 to usr_pw_db1-
CREATE using rpo_ex2-
SELECT * FROM (-)
WITH v1 as (-)
Select emp, option_group, | " -
substr (option_group, 1, 3)-
||','|| substr (option_group, 4, 3)-
||','|| substr (option_group, 7, 3)-
||','|| substr (option_group, 10, 3)-
||','|| substr (option_group, 13, 3)-
||','|| substr (option_group, 16, 3)-
||','|| substr (option_group, 19, 3)-
||','|| substr (option_group, 22, 3)-
||','|| substr (option_group, 25, 3)-
||','|| substr (option_group, 28, 3)-
||','|| substr (option_group, 31, 3)-
||','|| substr (option_group, 34, 3)-
||','|| substr (option_group, 37, 3)-
||','|| substr (option_group, 40: 3)-
||','|| substr (option_group, 43, 3)-
||','|| substr (option_group, 46, 3)-
||','|| substr (option_group, 49: 3)-
||','|| substr (option_group, 52, 3) | ',' RPO-
of rpo_ex).
Select emp, case.
When (rpo like ('% UFF %') and rpo like ('% UP9% ')) then 'UFF + UP9 -.
When the rpo like ('% ADG %') then 'ADG ' -.
When rpo love ("IO3%") then "IO3 -.
When the rpo as ("IO4%") then "IO4 -.
When the rpo as ('IO5% ") then 'IO5 -.
When the rpo as ("IO6% %") then "IO6" -.
When rpo like ('% ROMANO %') then 'ROMAN '.
When the rpo like ('% U0F %') then 'U0F '.
When the rpo like ('% U0H %') then 'U0H '.
When the rpo like ('% U1C %') then 'U1C;
When the rpo as ('UCH %") then"UCH -.
When the rpo as ('UCM % %') then 'UCM -.
When the rpo like ('% UF7% ') then 'UF7;
When the rpo as ("UFF %") then "UFF;
When the rpo like ('% UFU %') then 'UFU -.
When the rpo like ('% UG4% ') then 'UG4;
When the rpo like ('% UGU %') then 'UGU;
When the rpo like ('% UGX %') then 'UGX;
When the rpo like ('% YFU %') then 'YFU;
When the rpo like ('% UH7% ') then 'UH7;
When the rpo like ('% UHQ %') then 'UHQ -.
When the rpo as ("UHU %") then 'UHU '.
When the rpo like ('% UHV %') then 'UHV;
When the rpo like ('% UHW %') then 'UHW -.
When rpo love ('UI2% ") then"UI2. "
When rpo like ('% UI4% ') then 'UI4;
When the rpo like ('% UI6% ') then 'UI6 '.
When the rpo as ("UI7%") then "UI7;
When the rpo as ("UI8%") then "UI8;
When the rpo like ('% UL5% ') then 'UL5;
When the rpo like ('% UM7% ') then 'UM7;
When the rpo as ("UMT %") then "UMT" -.
When the rpo as ("UNM %") then "UNM;
When the rpo like ('% UPX %") then"UPX"
When the rpo like ('% US8% ') then 'US8 -.
When the rpo like ('% Mikiduta %') then 'KARIM ' -.
When the rpo like ('% UUJ %') then 'UUJ;
When the rpo as ('UUN %") then"UUN -.
When the rpo like ('% % PERFORMED') then 'PERFORMED '.
When the rpo like ('% UYE %') then 'UYE.
When the rpo as ("UYS %") then "UYS' end - RPO
v1 -.
where the rpo like ('%, ADG, %').
or the rpo like ('%, IO3, %')-
or the rpo like ('%, IO4, %')-
or the rpo like ('%, IO5, %')-
or the rpo like ('%, IO6, %')-
or the rpo like ('%, ROE, %')-
or rpo like ('% U0F %')-
or rpo like ('% U0H %')-
or the rpo like ('%, U1C, %')-
or the rpo like ('%, UCH, %')-
or the rpo like ('%, UCM, %')-
or the rpo like ('%, UF7, %')-
or the rpo like ('%, UFF, %')-
or the rpo like ('%, UFU, %')-
or the rpo like ('%, UG4, %')-
or the rpo like ('%, UGU, %')-
or the rpo like ('%, UGX, %')-
or the rpo like ('%, YFU, %')-
or rpo like ('% UH7, %')-
or the rpo like ('%, UHQ, %')-
or the rpo like ('%, UHU, %')-
or the rpo like ('%, UHV, %')-
or the rpo like ('%, UHW, %')-
or the rpo like ('%, UI2, %')-
or the rpo like ('%, UI4, %')-
or the rpo like ('% UI6% ')-
or the rpo like ('%, UI7, %')-
or the rpo like ('%, UI8, %')-
or the rpo like ('%, UL5, %')-
or the rpo like ('%, UM7, %')-
or the rpo like ('%, UMT, %')-
or the rpo like ('%, UNM, %')-
or the rpo like ('%, UPX, %')-
or the rpo like ('%, US8, %')-
or the rpo like ('%, KARIM, %')-
or the rpo like ('%, UUJ, %')-
or the rpo like ('%, UUN, %')-
or rpo like ('% PERFORMED, %')-
or the rpo like ('%, UYE, %')-
or the rpo like ('%, UYS, %')-
or the rpo like ('%, ROE, %'))
/
output
If you google you will see many examples, here is one:
-
How to get data in the procedure after CREATE TABLE table1 AS SELECT * from table2
Hello
can any body tell me how to get the data in the new table created in the procedure. because it gives following error.
- Error (47,21): PL/SQL: ORA-00942: table or view does not exist
tableName: = "BCKUP_" | TO_CHAR (sysdate, 'ddmmrrrr');
tableDDL: = 'CREATE TABLE' | tableName. "AS SELECT * FROM Table1 where to_char(MSG_IN_TIME,''dd-mon-rrrr'') < sysdate - ' | daysNumber;
EXECUTE IMMEDIATE backUpDDL;
COMMIT;
DELETE FROM Table1;
How to select the data in the newly created table. as...
Select * from ". tableName;
Do not choose anything to get the number...
Just after backupDDL EXECUTE IMMEDIATE, simply refers to SQL % ROWCOUNT - who will be the number of lines.
Oh and DDL engages automatically, your commitment is redundant.
-
Hi all
11.2.0.3.10
AIX6
I created a user SCOTT in our database.
I have grant connect, resource to scott; because it is easier to do it this way.
DBA, I wish that I'm the only one to create all the tables of scott, and he cannot create for himself.
What is the effective way to do this? Is this order enough? > REVOKE CREATE a TABLE FROM SCOTT;
Thank you
MK
RP gave you the right answer if you want to restrict users to create table, do not give them privilege resource. See this demo:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > create user test identified by the test.
Created by the user.
SQL > grant connect to test;
Grant succeeded.
SQL > connect test/test;
Connected.
SQL > create table tab1 (a number);
create table tab1 (a number)
*
ERROR on line 1:
ORA-01031: insufficient privileges
SQL > connect sys/pw as sysdba
Connected.
SQL > grant create table to test;
Grant succeeded.
SQL > connect test/test;
Connected.
SQL > create table tab1 (a number);
Table created.
SQL > connect sys/pw as sysdba
Connected.
SQL > revoke create table test;
Revoke succeeded.
SQL > connect test/test;
Connected.
SQL > create table tab2 (a number);
create the table tab2 (a number)
*
ERROR on line 1:
ORA-01031: insufficient privileges
SQL >
Concerning
Girish Sharma
Maybe you are looking for
-
can I pre-order sim free iPhone Unlocked 7 more?
When I try on preorder iPhone 7 more from the web site, I don't have the simfree option. What should I do?
-
I want to know why Mozilla would be, in effect, is last amount 'upgrade' to a downgrade... at least for me... and this is the reason - I downloaded Firefox 22 & now the Easy Youtube Downloader module is not compatible. For me, this add-on is ESSENTIA
-
El Capitan on iMac 2012?
My sister has a purchased iMac in 2012 (middle of model year 2011, I presume) and Lion (10.7.5). It's a 21 ", i5 2.5 GHz, 4 GB of RAM. The story of Apple (http://apple-history.com/iMac) site lists the OS max for this model as 10.10.4. However, they a
-
Code Source open now available for the confident sequencers
E-mail: * removed privacy *.
-
I have a Compac Presario model # CQ5320F Windows 7 64 bit. My problem is that when I start my computer, it goes to a screen that displays the compac logo and it gives 4 options and when I select one of them, I get a BIOHD-2 error message. I do not ha