How to create the table in another schema of database even
Hello..I have a database DB1
and 2 patterns / users in this...
Usr1 and Usr2...
I created a TEMP Usr1 schema table... and created
Then tried the following declaration in the schema Usr2...
CREATE TABLE TEMP AS SELECT * FROM Usr1.TEMP;
Then it is in error that...
: 00942 TABLE OR VIEW DOES NOT EXIST...
What is the reason for this...
Thank you
You must make this grant on any new table, you create in usr1 and you want to use in the usr2 schema.
Its not desirable, but you can give system privileges
grant select to usr2.
USR2 can select on any table.
Tags: Database
Similar Questions
-
READ the TABLE of another schema
Hello
pls help me.
I want to read the table of another schema that is declared in the application of the apex.
SELECT * FROM DBA_ROLE_PRIVS;
(SELECT * FROM sys.) DBA_ROLE_PRIVS: auch bad)
The owner of this table is SYS.
Error: The Table is unknown or cannot be found.
my real schema is GCs.
How is the select statement for this case for reading in the table (or tableview) of another schema?
many and many thanks for your help.
TLThe SYS schema is a special schema in Oracle. You must explicitly grant the user rights by selecting tables and views sys.
-
create existing table in another schema
Hi master,
We are using oracle 10g R2 on linux.
I have a scheme say user1 with many tables, starting with
BC_ (50 PICTURES)
PC_ (20 TABLES)
LC_ (30 TABLES) etc.,.
now, I want to create these tables in another schema with their constraints and their privileges in another schema.
as I want to generate a create table script, which will create a table that begins with "BC_" only. another script will create table starting with "PC_" only. and like that.
is it possible with the command
create the table AS
Select * from (old scheme). (table_name);
can we use query sub in it to be more precise?
and it will transfer all its privileges and grants the new schema?
Thanks and greetings
VDIt is possible to CREATE TABLE as SELECT from a different scheme but CREATE TABLE as SELECT will transfer only the data and the structure of the base (column names and data types) table, no constraints.
I think, you have two options to do this easily:
(1) use SQLDeveloper (GUI) or a procedure from PL/SQL DBMS_METADATA. GET_DDL to generate the SQL script to create table with constraints, you can use INSERT INTO new table (columns) column SELECT FROM oldschema.oldtable
DBMS_METADATA Description: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#i1019414(2) export a schema data, import it into the other using Data Pump or exp/IMP.
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/dp_export.htm#i1007466 -
How to create a table in a schema in the SOA database
Hello
can you please guide me how to create a table looks under custom schema available in the SOA database
Thank you
Valsaint
Hello
1. use JDeveloper to connect to your schema custom: view > Database > Database Navigator > new connection
2. set the mpdel of your table column names, types of data, constraints (primary key, not null, foreign key, etc..)
3. use this simplified tutorial to create the table according to your model of table create statement - Oracle/PLSQL: CREATE TABLE statement
4. execute the statement in the SQL of JDeveloper journal for the custom connection (point 1 above).
Let me know if you need help!
HTH,
A.
-
How to allow a user to view all the tables from another schema?
I have a 'vic4ever' scheme where I have created all my tables. Now, I create a new user named "nvvp1". So, I want to enable nvvp1 display all tables in a schema vic4ever. But I don't know how to do! Or I need to run this command for each table?
Grant select on vic4ever.table1 to nvvp1;
Grant select on vic4ever.table2 to nvvp1;
....
Thank youYes, that's what you have to do, but you could speed up a bit:
BEGIN FOR cur_rec IN (SELECT table_name FROM ALL_TABLES WHERE UPPER(owner) = 'NVVP1') LOOP EXECUTE IMMEDIATE 'Grant select on vic4ever.' || cur_rec.table_name || ' to nvvp1'; END LOOP; END; /
-
As sysdba, how I would create a table in another schema of users
Well, I'm a student so I may have some of the words wrong, but I think you understand what I mean.
I am logged in as sysdba, I created a user named scott, and now I want to give the table scott. I want to leave sysdba, as in I don't want to login as scott.ALTER USER SCOTT QUOTA 100M ON USER01;
CHANGE USER
QUOTA UNLIMITED ON -
grant the select privilege on the table in another schema by role error
Hello
I have a problem with the granting of privileges to another schema
I have A user who has only 1 system priv: connect, which has a private: create session;
I created a role X, which I have the privilege: select on a table to a diagram B customer.
I then conceded this X role to A user.
I can't select * B.customers when im connected to A
identification of information like it that I'm missing?
Thank you
Rgds>
but whenever I put a default role, the other is automatically set to zero-defectsHow did you receive the two default roles?
>
By running the code I posted above as user SYS.Drop your user and start again and use the code I posted.
-
How to access the tables in another workspace (same server)?
This is probably simple, but I can't understand it: we have different applications in different areas of work, but on the same server: how I can simply access the tables (just read-only) in a different workspace than the application?
Published by: JJ MAHÉ - Oracle on March 18, 2013 02:07If you really need only Privs-SELECT on tables, it's perhaps easier to grant the privilege to the target schema to your schema.
-
How to create the Table using the column Drag and Drop feature
Hello:
I'm new to Data Modeler tool Oracle SQL dev and would like to know if there is a way to create a new table by reusing existing columns or groups of columns. The idea is to maintain consistency and save time of table design. If the columns created previously can be reused and require, drag and drop column in the right pane, then only new columns must be created manually.
Any thoughts on this will be appreciated.
Thank you!Yes - just change the name of the model table in the script (t_name = "table_template") then save this new transformation for later use.
I don't know how to apply only some of the tables. Seems like something you could do to a secondary view level?
Perhaps someone else on the forum can advise how to change the script to work on a subview only instead of the whole model.
-
How to create the failure of another process of running processes.
Hello
I want to create an instance of another process of my running processes. At the same time, I want to move a business object as a parameter to this instance. Please help me to do this!This and other ways to create an instance in a another process has been described in Re: creating the new process instance
1 this is how you create an instance in a process using the logic in the activity of the automatic method. This example uses the "Fuego.Lib.ProcessInstance.create ()" method below within a process:
// "argsIn" is an associative string array (Any[String]) argsIn as Any[String] // this assumes that the Begin activity has two argument variables // named "nameArg" (a string) and "myBpmObjectArg" (a BPM // object variable) and you're setting them // to the previously initialized variables "name" and // "myBpmObject" respectively argsIn["nameArg"] = name argsIn["myBpmObjectArg"] = myBpmObject // logic here to determine the name of the process to create an instance in idOfProcess as String idOfProcess =
ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn") ProcessInstance is in the catalog inside Fuego.Lib.
The processId parameter (the variable "idOfProcess" in the logic above) is the thing that I most often live with that. This is the text that you see when you process in the project right-click browser tab-> "Properties". Look at the value in the field 'Id' and not the field 'Name' (the name without a space). Prefix with "/" as presented here and if you have deployed this using a unit of Organization (UO) then prefix this chain also.
The third parameter is almost always "BeginIn". Start of activities in a process can have several incoming argument mappings, the default value is "BeginIn". See your, double-click the process Begin activity and seek on behalf of mapping in the upper left corner of the dialog box.
"argsIn" is the set of variables of incoming arguments you want to spent in the process. A common error is to type the names of the variables argument entering without the double quotes, as follows:
. . . // this will *NOT* work argsIn[nameArg] = name argsIn[myBpmObjectArg] = myBpmObject . . .
Here is the correct syntax:
. . . // this *WILL* work argsIn["nameArg"] = name argsIn["myBpmObjectArg"] = myBpmObject . . .
In this example, the process has two argument variables. It doesn't matter if the incoming arguments are arguments of primitive type (e.g. String, Integer, Decimal...) or objects of BPM, it is always in the same way. In this example, there is an incoming string argument, called "nameArg" and an argument entering BPM object called "myBpmObjectArg".
2. a process can create a new instance in another process by using the activity subflow, which creates an instance in a child synchronously sub-process and expects the result to return once the instance in the child sub-process reached the end of the process activity. The parent process, you would correspond to the variables of the arguments incoming and outgoing of the child called process with instance variables in your parent process.
3. a process can create a new instance in another process using the process creation activity that creates an instance of an asynchronous child subprocess (fire and forget), but does not expect the child to respond to the parent company. Once the child is initiated, the mother continues its flow. The parent process, you would correspond to the variables of the incoming arguments of the called child process with instance variables in your parent process.
Dan
-
How to create the table with the description of the table
Hello
I would like to create the array with the description of the table (such as the creation of package or procedure with comments).
Is it possible to achieve thanks to the oracle, if possible please help me achieve this goal.
Thank you and best regards,
Ibrahim Sayyed.
> create table test (col1 number);
> comment table test is "about a comment ';
> select comments from user_tab_comments where table_name = 'TEST ';
COMMENTS
____________________________________________________________________
This is a comment -
How to create the table with value list/map binding
I need to display some values in a tabular format. It is possible to create a table adf without having value binds to a VO object. I can make a table with a combination of list/map.
I want to change the format of display with minimum change in the application. I therefore seeks a change to a list/map and map with the table.
Here is the structure in that I need to post.
_______________________
| | Header1. Tete2 |
|_______|_______|_______|
| Txt R1 | value 1. Value 2.
|_______|_______|_______|
| Txt R2 | Value 3. value 4.
|_______|_______|_______|
All views is completely irrelevant. So I should not create a VO and add the VO object lines.
Published by: yannick June 10, 2011 11:34Yes, you can do it. Create a pojo with properties (column) that you want to display in the table and create a list of instances of the POJO and then you can fill your table using the list.
Sample:
//POJO public class SamplePojo { private String col1; private String col2; public SamplePojo(String col1, String col2){ this.col1 = col1; this.col2 = col2; } //add setter and getter methods } //Inside bean, prepare a list with pojo instances (Assume a getter exists for pojoList) pojoList = new ArrayList(); pojoList .add(new SamplePojo("Value1", "Value2"); pojoList .add(new SamplePojo("Value3", "Value4"); etc. //Inside jspx
HTH
Jean Lou -
Question: How to create the new user and schema in 11g?
Who can give me the answer how to create a new user and a schedule?
I had installed oracle 11g DB and oracle in my OS windows client. I found in the 11g than there is no console management business with the new version. It is no different with oracle 10g. So I don't know how to create this new user.
I had created a new DB instance, but I did not how to create a user on it. Who can give me a helping hand for who? I hope a give oracle experenice expert answers.
Thank you very much!
Published by: user774630 on October 27, 2008 22:01
Published by: user774630 on October 27, 2008 22:09Hello
I'm not sure which option you are talking about? [Do you use the EMCA, http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If this isn't the case, the command line that the other is using DBCA (Database Configuration Wizard). I think you're talking about that. Yes, if the message comes from creating the repository that soon after, you can connect to the EM. You would get the port no port HTTP of EM comes from the $OH/install/portlist.ini file.
HTH
Aman...Published by: Aman... on October 28, 2008 11:36
Waived, insertion of link does not work. -
How to find the table in a schema, if I only have a particular column name
Hi all
Ideal if some1 could help me, I know not a column name and I need to find the table that actually holds this column paricular name I know.
is it possible to find this particular table with SQL?
Thank you
RahulSelect the table TABLE_NAME from user_tab_columns where column_name = 'COLUMN_NAME '.
-
ODI 12 c how to create the table without number (38.0)
Hi gurus of ODI.
I got following problem:
I have a copy 1:1 with the addition of metadata and a delta on the side to find target. When I look into the target in several numeric columns, the values are truncated, I lose precision.
What ODI research I found the problem to the work table.
All affected columns are defined as number without giving any precision or scale, in the target as well as the source.
When I ran the simulation to see what ODI I noticed that, in the creation of the work table statement ODI number is used (38.0) for all numeric columns where no precision is explicitly given.
It is so clear when ODI loads the data from the source to the working table the values of the numeric columns are truncated.
My Question now is, how do I know ODI is not to use the number (38.0), but simply of number for the numeric columns with no details given when a work table is created?
I know I could explicitly give precision and scale for each column of numreic, but it would be a lot of work and for some of the columns the precision required is not known, then that would be the worst Option.
Thanks for the help
Martin
I found myself where was the problem, then I write the answer, while others may find it here:
The mapping was
Source--> Filter--> Expression--> Join--> target.
The join joins anothher Table.
In the target, the instructions for completing the columns have been Expression.ColumnName
I changed it to be Source.ColumnName
The Knowledgemodules delivered with ODI treat different columns depending on how they are.
In the creation of the work table, firstly everything all computed columns in the Expression or read from the expression by other components, including targets. It then uses the presission and scale in the component expression with number (38.0) by default if it is explicitly given. Items but which are directly read from somewhere before the expression are also saved in the work table, it ODI use the scale and precision holding of the source - and when the Source's number without taking into account the precision and the scale he uses just number.
Maybe you are looking for
-
Paviollion HP HPE 112Y - no video SIgnal from the computer - monitor works
I have a desktop HP Pavilion HPE 112Y. About two weeks, the video has stopped working. I replaced the HDMI cable, we replaced a VGA cable, etc with no luck. I plugged in the screen of my laptop and it works fine, then it is certainly the office.
-
laptop does not start after you install a new hard drive
HP G60-630us laptop... .replaced hard drive... .installed 3 boot disks... After you remove the last drive, when you click on continue it is supposed to start... .it reads no boot device... . If put you the first disc to start, you end up back where y
-
Please help me I have a dell inspiron 1440 with windows Vista installed I am not able to boot this laptop, the sections of the computer for windows to load page, then restarts. BIOS is A07 I get 2 errors differently can you help me interpret them and
-
the size of my hard disk decreases every time I used tune up utilities
the size of my hard disk decreases every time I used tune up utilities, then I uninstalled tunup utilities, but on cheking the hard dist, I found that I actually used only 368 168 GB but it demonstrates that only 141 Go free instead of 200 GB, how do
-
no IPv6 internet access. Help me please to connect ipv6 internet.
I have access to the internet for ipv4. but I want to use Home Group so bad, because I had a week ago from mobile. I tried to connect their collective housing, but I couldn't. I saw a post that ipv6 must be enabled using Home Group option. pls help m