I am unable to create a table using procedure..
Hi everyone,
I have given CREATE ANY TABLE privilege to user A and wants to insert data into TAB1 in schema B using a procedure "INSERT INTO B.TAB1 AS SELECT * FROM A.TAB1" but it shows the message--
PL/SQL: ORA-01031: insufficient privileges
Which privilege user A need to do the above task.
Thanks,
Abhijeet
SQL> create user a identified by a;
SQL>create user b identified by b;
SQL> grant connect,resource to a;
Grant succeeded.
SQL> grant connect,resource to b;
Grant succeeded.
SQL> grant create any table to a;
Grant succeeded.
SQL> conn a/a
Connected.
SQL> create table tab1 (id number);
Table created.
SQL> insert into tab1 values (1);
1 row created.
SQL> commit;
Commit complete.
SQL> conn b/b
Connected.
SQL> create table tab1 (id number);
Table created.
SQL> insert into b.tab1 select * from tab1;
insert into b.tab1 select * from tab1
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> conn sys as sysdba
Enter password:
Connected.
SQL> grant insert any table to a;
Grant succeeded.
SQL> conn a/a
Connected.
SQL> insert into b.tab1 select * from tab1;
1 row created.
So you need to grant “*insert any table* “ privileges to a;
regards
Liakat hossain
Similar Messages
-
Unable to create datawarehouse tables using DAC client
Hi,
We are facing error while creating data warehouse tables in DAC Client.
Please find the below mentioned error message
=====================================
STD OUTPUT
=====================================
CREATING SIEBEL DATABASE OBJECTS
F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
Error while importing Siebel database schema.
=====================================
ERROR OUTPUT
=====================================
Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
San Mateo, CA 94404.
User agrees that any use of this software is governed by: (1) the applicable
user limitations and other terms and conditions of the license agreement which
has been entered into with Siebel Systems or its authorized distributors; and
(2) the proprietary and restricted rights notices included in this software.
WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
If you have received this software in error, please notify Siebel Systems
immediately at (650) 295-5000.
F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
Connecting to the database...
Unable to connect to the database...
I have established ODBC connection using Oracle client driver and able to connect with the oracle server.
Oracle DB & client Version : 11.2.0.2- 64 bit
DAC Version : 10.1.3.4.1
Informatica version : 9.0.1
OBIA : 7.9.6.3
Can someone please help me to resolve this issue?
Thanks,
PrasannaThe 64 bit odbc (odbcad.exe) which is in system32 folder contains oracle client 11g driver
But in 32 bit odbc(odbcad.exe) which is in syswow64, I am not able to see the oracle client 11g driver.Instead Oracle Merant ODBC Driver in DAC 10g_Oracle OH888717393 is there
When we try to establish connection with this driver, it is throwing following error
Specified driver could not be loaded due to system error 193:
*(Oracle Merant ODBC Driver in DAC 10g_Oracle OH888717393,*
F:\DAC\bifoundation\dac\utilities\DataDirectODBC\seor820.dll).
Can you please explain how to create dsn in 32 bit odbc also for oracle client?
Thanks,
Prasanna -
How to create a table using subform if lifecycle designer 7.1 not availabl
hi,
plis tell me how to create a table because i am using adobe lifecycle 6.1 and in the library
there is no object for table..
also tell me that if i have adobe lifecycle designer then which is better option and why?
use table from library directly or create a table using subform...Hi Sweta,
Create the interface attributes of type string and xtring type.
Create node in the context of type graphics. bind the interface fields to the graphic node context element properties -
Graphic content, field of xzstring type and mimetype to be string/any char data type of suitable length.
In layout drag and drop the image field and bind it to the graphic element.
In yoour report programme-
do the code as berlow to pass the graphic data -
<i>CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = 'GRAPHICS'
p_name = '<mime type graphic name>'
p_id = 'BMAP'
p_btype = 'BCOL' "BMON if monochrome
RECEIVING
p_bmp = w_binary
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.</i>
in the call <form function module>
pass the inerface values for
xstring (graphic field) to be w_binary (import parameter of the previous method)
and mime type to be 'image/bmp'.
This would work.
Hope fully you may be able to see a tutorial on this soon ;).
- anto. -
How to create a table using Text Layout Framework?
How to create a table using Text Layout Framework? I meen real tables - like in HTML.
Cell as indipendant TLF should work, I have created my table using same approach and works fine for me ... this is where it is
http://apps.live-documents.com/docs/openWebDoc.do?docId=1480607
Regards
Raf -
How to create a table using polish
I am able to show all the database records in table form but i want to edit a particular cell of the table, how to do that. thanks in advance.
Cell as indipendant TLF should work, I have created my table using same approach and works fine for me ... this is where it is
http://apps.live-documents.com/docs/openWebDoc.do?docId=1480607
Regards
Raf -
Hi Folks,
I have a problem with OBIEE EM, There in Enterprise Manager i am unable to navigate into the options like when i clik on any Tab it is not working and even i am unable to create a report using analysis.
Thanks in advancei have also tried that but no use can u give me any other way.......
-
Unable to create web reports using WAD in BI 7.0
We are unable to create web reports using WAD in BI 7.0 because of the missing BI metadata. Please take a look at the error below .
didnt see the error??
-
I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?
It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
Andrew -
How to create table using Procedure
Hi,
I want to create table using procedure .
How to write procedure for the table creation?
thanks in advance.Use dynamic sql or DBMS_UTILITY.EXEC_DDL_STATEMENT:
SQL> desc tbl1
ERROR:
ORA-04043: object tbl1 does not exist
SQL> begin
2 execute immediate 'create table tbl1(x number)';
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> desc tbl1
Name Null? Type
X NUMBER
SQL> drop table tbl1
2 /
Table dropped.
SQL> begin
2 DBMS_UTILITY.EXEC_DDL_STATEMENT('create table tbl1(x number)');
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> desc tbl1
Name Null? Type
X NUMBER
SQL> SY. -
Unable to Create Partitioned Table
Hi All,
I was trying to create a partitioned table using following
Create table customers (custcode number(5),
Name varchar2(20),
Addr varchar2(10),
City varchar2(20),
Bal number(10,2))
Partition by list (city),
Partition north_India values (‘DELHI’,’CHANDIGARH’),
Partition east_India values (‘KOLKOTA’,’PATNA’),
Partition south_India values (‘HYDERABAD’,’BANGALORE’,’CHENNAI’),
Partition west India values (‘BOMBAY’,’GOA’);
It is throwing me an error
ORA-00922: missing or invalid option
Will you please tell me what is wrong with this query? Is it possible to create partitioned table using select statement (create table as select... Partition by...)?
Regards
~PravinPravin
Will you please tell me what is wrong with this query?I see 4 errors in the syntax. Therefore, I strongly suggest you to have a lock to this:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2146309
In addition, have a look to the error message. If I run your script in SQL*Plus it clearly shows where the problem is. E.g.:
SQL> Create table customers (custcode number(5),
2 Name varchar2(20),
3 Addr varchar2(10),
4 City varchar2(20),
5 Bal number(10,2))
6 Partition by list (city),
7 Partition north_India values (‘DELHI’,’CHANDIGARH’),
8 Partition east_India values (‘KOLKOTA’,’PATNA’),
9 Partition south_India values (‘HYDERABAD’,’BANGALORE’,’CHENNAI’),
10 Partition west India values (‘BOMBAY’,’GOA’);
Partition by list (city),
ERROR at line 6:
ORA-00922: missing or invalid option
Is it possible to create partitioned table using select statement?Yes. With the usual syntax.
HTH
Chris Antognini
Author of Troubleshooting Oracle Performance, Apress 2008 (http://top.antognini.ch) -
Create temporary Tables using SQL
Hello,
I'm wondering if SAP allows the creation of new Tables without SDK objects,
I want to create temporary tables using SQL scripts an compile them when an specific addon is connected and erase them when the addon disconnects,
Do you think this is allowed?.
thanks,
GabrielaYou could always have a second DB to create your temp tables in. This is the way I've done this, as well as created my own views and stored procedures in it. No updating of the primary table necessary. The way I named things was:
Company_DB - Company Database
Company_DB-Extern - My own stuff
Then, in sap, you can just do [Company_DB-Extern]..Object to call it, or you do the same from withing your project. -
Operates on two table using procedure
i want to handle two table using procedure in oracle 10g. i have created a procedure like this
CREATE OR REPLACE PROCEDURE sold_car1(
sid soldcar.sold_id%TYPE,
cid soldcar.id%TYPE,
cuid soldcar.customer_id%TYPE,
eid soldcar.emp_id%TYPE,
d soldcar.dat%TYPE
) IS
BEGIN
INSERT INTO soldcar VALUES(sid,cid,cuid,eid,to_date(d,'yyyy/mm/dd'));
DELETE FROM pcar where id=cid;*
COMMIT;
END sold_car1;
SHOW ERRORS
i have found some errors. how can i do this.hi
the errors are something like this ''the procedure is created with some errors''.
actually i want to pass 4 parameters in the procedure that will insert in one table and among the 4 parameters by using one parameter i want to delete one row of another table.
INSERT INTO soldcar VALUES(sid,cid,cuid,eid,to_date(d,'yyyy/mm/dd')); //soldcar is first table
DELETE * FROM pcar where id=cid; //pcar is second table -
How to update the data in sqlserver table using procedure in biztalkserver
Hi,
Please can any one answer this below question
how to update the data in sqlserver table using procedure in biztalkserver
while am using executescalar,typedprocedure getting some warning
Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
Please send me asap....
Thanks...Hi Messip,
A detailed error would have helped us to answer you more appropriately but
You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
Maheshkumar
S Tiwari|User
Page|Blog|BizTalk
2013: Inserting RawXML (Whole Incoming XML Message) in SQL database -
Error in Creating DWH Tables using DAC
Hi friends,
While trying to create DWH tables from Tools>>ETL Mgmt>>Configure.
At the end of creating DWH tables resulted in failure. When i checked with the log file "createwtables.log" it showed like below
=====================================
STD OUTPUT
=====================================
CREATING SIEBEL DATABASE OBJECTS
C:\orahome\10gR3_1\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u DAC /p ******* /c OBIDB /G "SSE_ROLE" /f C:\orahome\10gR3_1\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b OBIEE_TOOLS /K OBIEE_TOOLS /X OBIEE_INDEX /W N
Error while importing Siebel database schema.
=====================================
ERROR OUTPUT
=====================================
Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
San Mateo, CA 94404.
User agrees that any use of this software is governed by: (1) the applicable
user limitations and other terms and conditions of the license agreement which
has been entered into with Siebel Systems or its authorized distributors; and
(2) the proprietary and restricted rights notices included in this software.
WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
If you have received this software in error, please notify Siebel Systems
immediately at (650) 295-5000.
C:\orahome\10gR3_1\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u DAC /p ***** /c OBIDB /G SSE_ROLE /f C:\orahome\10gR3_1\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b OBIEE_TOOLS /K OBIEE_TOOLS /X OBIEE_INDEX /W N
Connecting to the database...
Unable to connect to the database...Im sure that database connectivity to the user in Up. These are the below details that i gave
TableOwner: BIAPPS
Pwd: BIAPPS
ODBC Datasource: OBIDB
Tablespace: OBIEE_TOOLS
Indexspace: OBIEE_INDEXAll the above details, are seemed to be correct, but it is resulting in failure. What might be the problem.
REgards,
SaroHi Andy,
Like Svee, adviced in the below link
https://forums.oracle.com/forums/thread.jspa?messageID=10520360
I tried to search for my DSN entry in the odbc driver which is in system32 and systemWOW64. Hence i can find the entry in system32, but not in systemWOW64. So i tried to create my same DSN entry in the driver in systemWOW64 and after that i started to created DWH tables and now it is created successfully.
Thanks
Regards,
Saro -
Unable to create org unit using RH_INSERT_INFTY
All,
We are using internal number range to create Org Units in the SAP System. However, there are some org objects present in a legacy SAP system that we need to upload to the new ECC system and create relationships for them .
Following is my code for the RH_INSERT_INFTY function module :
w1000-mandt = sy-mandt.
w1000-plvar = '01'.
w1000-otype = 'O'.
w1000-OBJID = ''.
w1000-infty = '1000'.
w1000-ISTAT = '1'.
w1000-begda = '20090101'.
w1000-endda = '99991231'.
w1000-langu = 'E'.
w1000-short = 'HR_AST5'.
w1000-stext = 'HR Assistant 5'.
append w1000 to i1000.
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
FCODE = 'INSE'
VTASK = 'S'
ORDER_FLG = 'X'
COMMIT_FLG = 'X'
TABLES
INNNN = i1000
IF SY-SUBRC <> 0.
ENDIF.
I am however unable to create the org units as i get an error saying "Creation of object ID 00000000 is not allowed".
I know im getting this error because im leaving the objid field blank, but I figured since it is internal number range, i would have to give this as blank .
Could somebody please help me figure out how to load these Organizational Objects and their Relationships ?
Thanks,
AmitHi Amit
try to use 'D' as a value of VTASK
or use FM
call function 'RH_OBJECT_CREATE'
exporting
langu = l_langu
plvar = plvar
otype = c_otype
EXT_NUMBER = '00000000' "???
SHORT = ' '
stext = stext
begda = begda
endda = endda
ostat = l_istat
vtask = 'B'
GUID =
KEEP_LUPD = ' '
importing
objid = objid
exceptions
text_required = 1
invalid_otype = 2
invalid_date = 3
error_during_insert = 4
error_ext_number = 5
undefined = 6
others = 7.
In this FM u dont need to pass the Object ID and call function
*---if the above steps are succesful update the database
call function 'RH_UPDATE_DATABASE'
exporting
vtask = vtask
BUFFER_UPD = ' '
ORDER_FLG = 'X'
COMMIT_FLG = 'X'
CLEAR_BUFFER = 'X'
KEEP_LUPD =
WORKF_ACTV = 'X'
exceptions
corr_exit = 1
others = 2 .
as VTASK 'B' will create the entry in buffer and it will only commit to database after the secondFM
or u can try with 'D' as VTASK
Hope this will resolve ur issue
Regards
Guds
Maybe you are looking for
-
More than one application server offer ENQ service
Dear Gurus We have a problem in SICK Transaction in 4.6 b server contanining 3 instances . " more than one application server offer ENQ service" When 2 instances are stopped and run the SICK transaction for one instanse found no error but when other
-
Hi EXPERTS, In notification when we change user status, system logs date and time in action log I want to know in which table does user status date and time can be found. Regards Anil Kumar
-
Just migrated from a macbook pro to a macbook air, and now I can't remove the "dvd/cd" features from the settings or uninstall dvd player. this is obviously cosmetic but a potential oversight by Apple team. any thoughts how i can fix this? edit m
-
Hi all! I'm trying to communicate with parallel port using the commapi version 2. Unfortunately, the api doesn't accept any other mode than SPP mode that is read-only. When I try to change the parallel port mode, I got an UnsupportedCommOperationExce
-
Creating a button for inserting into a table
What I can't do, because I've never needed to, is to create in a page (where I have a Interactive report) a button that when is clicked performs a simple sql (for example an insert into a table using some page item values). How can I do it? Thanks