Can I create a table called user
Dear buddies,
Can I create a table called user in my database.
Please guide me.
Thanks in advance.
Nith
user645399 wrote:
I was required to create one for some reasons by a vendor so that Oracle will work with their tool.
This tells you more about the vendor than the vendor would like you to know ......
Like the vendor that told me their product would work with an oracle database, but they preferred SQL Server because "oracle doesn't perform will with more than 5 concurrent connections". Fortunately we were still in product evaluation and I was able to get them cut from the short list.
After seeing all your replies, now, I have contacted them asking for alternatives and explanations.
Anyway, Thank You to everyone of you.
Nith
Similar Messages
-
Can I create a table in a procedure submitted to job queue?
I have created a package (with AUTHID CURRENT_USER) where some of the procedures create temporary tables to facilitate processing. These procedures run just fine when executed directly from within an anonymous block at the SQL*PLUS level. However, when I submit the procedures to the job queue (via DBMS_JOB.SUBMIT), the job is submitted successfully but fails when run. Investigating the Alert Log shows an error of insufficient privilege on the CREATE TABLE command in the procedure.
QUESTION:
Can I create a table from a procedure running in the Job Queue? If so, then how to get it to work? Does the job run in a different environment that needs Create Table privileges set to my schema?
Thanks for any info you can provide.
JohnFYI: Found the problem. In the Administrator's Guide (of course not in the supplied packages documentation about DBMS_JOB) I found:
"How Jobs Execute
SNP background processes execute jobs. To execute a job, the process creates a session to run the job.
When an SNP process runs a job, the job is run in the same environment in which it was submitted and with the owner's default privileges.
When you force a job to run using the procedure DBMS_JOB.RUN, the job is run by your user process. When your user process runs a job, it is run with your default privileges only. Privileges granted to you through roles are unavailable."
And of course we had set up our users to get all privileges through Roles, so CREATE TABLE wasn't one of my DEFAULT PRIVILEGES!
It sure would be nice if Oracle documentation could get its act together and provide ALL information about a topic in a logical place. The effort to find the information about privileges occurred after it took me 1/2 hour to figure out why my submissions were failing - I didn't have the ';' included in the quoted string for the procedure to be called - which I only figured out after looking at the code for DBMS_JOB where it made the note to make sure you include the ';'. Wouldn't it be good to have that MINOR DETAIL mentioned in the description of DBMS_JOB.SUBMIT????? -
Can we create internal table dynamically ? how?
hi to all experts,
can we create internal table dynamically ? how?plz explain me with an example.Anybody with good example will be rewarded.it was asked in an interview what the answer for itHI
Yes you can create
see this
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
JUST USE THIS CODE AND DO THE ESSENTIAL CHANGES ACCORDING TO YOU
STEP: 1 - get backend field catalog (currently displayed alv)
CLEAR: tl_fieldcatalog. REFRESH: tl_fieldcatalog.
CALL METHOD w_grid->get_backend_fieldcatalog
IMPORTING
et_fieldcatalog = tl_fieldcatalog.
STEP: 2 - create a new fieldcatalog for dynamic internal table
CLEAR: sl_fieldcatalog.
CLEAR: t_outtab_fieldname. REFRESH: t_outtab_fieldname.
CLEAR: tl_fieldcatalog_new. REFRESH: tl_fieldcatalog_new.
CLEAR: t_download_fieldname. REFRESH: t_download_fieldname.
CLEAR: t_download_fieldheading. REFRESH: t_download_fieldheading.
LOOP AT tl_fieldcatalog INTO sl_fieldcatalog.
STEP: 2.1 - populate data in T_OUTTAB_FIELDNAME
APPEND sl_fieldcatalog-fieldname TO t_outtab_fieldname.
STEP: 2.2 - populate TL_FIELDCATALOG_NEW & T_DOWNLOAD_FIELDNAME
IF sl_fieldcatalog-no_out EQ ''.
IF sl_fieldcatalog-fieldname NE 'STATUS'
OR sl_fieldcatalog-fieldname NE 'MESG_STATUS'
OR sl_fieldcatalog-fieldname NE 'ZLOCK'
OR sl_fieldcatalog-fieldname NE 'T_PLANT'
OR sl_fieldcatalog-fieldname NE 'T_CSR'.
If field is COMM_PLANT, change its length
IF sl_fieldcatalog-fieldname EQ 'COMM_PLANT'.
sl_fieldcatalog-outputlen = 1800.
sl_fieldcatalog-intlen = 1800.
sl_fieldcatalog-dd_outlen = 1800.
ENDIF. "comm_plant
sl_fieldcatalog_new = sl_fieldcatalog.
APPEND sl_fieldcatalog_new TO tl_fieldcatalog_new.
APPEND sl_fieldcatalog-fieldname TO t_download_fieldname.
APPEND sl_fieldcatalog-scrtext_l TO t_download_fieldheading.
CLEAR: sl_fieldcatalog, sl_fieldcatalog_new.
ENDIF.
ENDIF.
ENDLOOP.
STEP: 3 - create dynamic internal table
FREE: ref_download.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
I_STYLE_TABLE =
it_fieldcatalog = tl_fieldcatalog_new
IMPORTING
ep_table = ref_download
E_STYLE_FNAME =
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ASSIGN ref_download->* TO <ft_download>.
CREATE DATA ref_wa LIKE LINE OF <ft_download>.
ASSIGN ref_wa->* TO <fs_download>.
STEP: 4 - populate data in dynamic internal table
LOOP AT t_outtab INTO wa_outtab.
LOOP AT t_download_fieldname.
ASSIGN COMPONENT t_download_fieldname OF STRUCTURE
<fs_download> TO <fs_download_field>.
IF t_download_fieldname-field EQ 'COMM_PLANT'.
STEP: 4.1 - get long text from database table
CLEAR: wal_table.
SELECT SINGLE * FROM zshaven_plnt_txt
INTO wal_table
WHERE vbeln = wa_outtab-vbeln
AND posnr = wa_outtab-posnr
AND del_no = wa_outtab-del_no
AND del_itm = wa_outtab-del_itm.
IF sy-subrc EQ 0.
STEP: 4.2 - break long-text into separate lines
CLEAR: tl_text. REFRESH: tl_text.
SPLIT wal_table-plant_comm
AT '~'
INTO TABLE tl_text.
STEP: 4.3 - Combine these separate lines with space in
between two lines
CLEAR: wal_text, final_text.
LOOP AT tl_text INTO wal_text.
IF final_text IS INITIAL.
final_text = wal_text.
ELSE.
CONCATENATE final_text '-' wal_text
INTO final_text.
REPLACE '-' WITH ' ' INTO final_text.
ENDIF.
ENDLOOP.
STEP: 4.4 - move long text to work-area
<fs_download_field> = final_text.
ENDIF. "subrc
ELSE. "t_download_fieldname
READ TABLE t_outtab_fieldname
WITH KEY field = t_download_fieldname-field.
ASSIGN COMPONENT t_outtab_fieldname-field OF STRUCTURE
wa_outtab TO <fs_outtab_field>.
<fs_download_field> = <fs_outtab_field>.
ENDIF.
ENDLOOP.
STEP: 4.5 - Move data from work-area to dynamic internal table
APPEND <fs_download> TO <ft_download>.
CLEAR: <fs_download>.
ENDLOOP.
STEP: 5 - download
CALL FUNCTION 'DOWNLOAD'
EXPORTING
filename = 'C:\zshaven.xls'
filetype = 'DAT'
filetype_no_show = 'X'
filetype_no_change = 'X'
TABLES
data_tab = <ft_download>
fieldnames = t_download_fieldheading
EXCEPTIONS
invalid_filesize = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
customer_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Can we create a table in temp tablespace?
Hi Support ,
I have confused about on point that Can we create a table in temp tablespace.
thanksI so not think the question is so bad except that it was as suggested something you can determine for yourself in 20 seconds:
> /
create table mark (fld1 number) tablespace tmp
ERROR at line 1:
ORA-02195: Attempt to create PERMANENT object in a TEMPORARY tablespace
Other database products allow users to create tables in the temporary tables such as SQL Server. I just tested using SQL Server 2008 R2 and I could create a table in TEMPDB.
SQL Server also creates temporary tables, create table #table_name, in TEMPDB. You can see these objects while in use.
IMHO -- Mark D Powell -- -
How can i create a new Adminstrator user account ?
How can i create a new Adminstrator user account ?
Go to the System Preferences>Users.
Click the lock if and enter your password, if necessary.
Then click on the "+" symbol below the accounts list.
From the "New Account" menu, select"Administrator" and fill in the rest of the information.
And finally click the "Create Account" button.
Done. A new Administrator user account. -
How can I create a form for users wherein the text field will expand to accommodate additional text?
You need to use LiveCycle (PC Only) to create a dynamic form like that.
The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.) -
Can I create a table in my form?
Our need our teachers to fill out a field trip form using a table format?
Can I create a table in my form?
and if yes, how?
thank you
Need it to look like this:
DATE
TIME
To start/finish
Name of Program
TEACHER’S
NAME
TEACHER’S EMAIL
# OF
STUDENTS
Setup in
Room #
02-07-14
9:20-10:35
Soil Rocks
Juday
20
118
02-07-14
10:50-12:05
Soil Rocks
Guild
20
118
02-07-14
12:45-2:00
Soil Rocks
Neptune
20
118
02-07-14
2:15-3:30
Soil Rocks
Webb
20
118Yes and yes.
If you have questions about creating the PDF form, you can use the Acrobat Forms forum: http://forums.adobe.com/community/acrobat/forms?view=discussions -
Dear Experts,
How Can I create plan Table.
How can i read it?run UTLXPLAN.SQL
under
$ORACLE_HOME/rdbms/admin/
check this link for detailed information
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260 -
How can I create aform allowing a user to add an image in it?
How can I create aform allowing a user to add an image in it?
select * from dba_streams_rename_schemaWhat do you have there?
-
Can i create External Table dynamically
Hi,
Is it possible to create External Table dynamically ?
I want to use the following dynamically to create External Table.
1) fields
2) field position
3) file location
ThanksThe answer shouldn't be very different of already given answers in your Can i create external table dynamically? of the last month, is it ?
And question is still same : why wanted such thing ?
Nicolas. -
Can't create DeliveryBean when call bpel from jsp
Can't create DeliveryBean when call bpel from jsp
/*** code ********************************/
Properties props = new java.util.Properties();
java.net.URL url = ClassLoader.getSystemResource("context.properties");
props.load(url.openStream());
Locator locator = new Locator(domain, "bpel", props);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
NormalizedMessage nm = new NormalizedMessage();
String convId = GUIDGenerator.generateGUID();
nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
nm.addPart("payload", xml);
NormalizedMessage res = deliveryService.request(processID,operationName, nm);
/*** code ********************************/
This code works well in java , but when I use it in jsp on tomcat server,
the following exception ocured:
Can not create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: Name ejb is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279) at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53) at workflow.bpel.BpelProcessHelper.invokeSyncBpel(BpelProcessHelper.java:54) at
Will anyone to tell me where "ejb/collaxa/system/DeliveryBean" bean is?
Which jar file is this class in ?
Thanksdid you try including bpel/lib/orabpel.jar & bpel/system/server/j2ee/ob_ejb_engine.jar in your tomcat classpath.
-
How can I create a Table View in Cocoa Applescript?
This is my last resort. I've searched for days and only found tutorials for iPhone and Cocoa, and I have no idea where to start. I'm looking for a way to create a Table View, and fill it with a few cells that call a handler when clicked. I've looked through the Xcode help, the Apple documentation, and countless tutorials, and I don't know what to do. I'm sure what I'm asking is possible, because usually what is possible in Cocoa is possible in Cocoa-Applescript.
Perhaps something like:
myTableView's addCell_OfType_WithHandler("This is a text cell", text, "myHandler:")
I would appretiate any responses and brief descriptions on the matter.You did not answer my first question, which was not an idle question. I'll answer here, but if cross-chatter appears in a different thread I'll ignore it. You'll have to keep track of the mess yourself.
Apple_For_The_Win wrote:
At this point, I've dragged a Table View onto my window, in Xcode. I've connected it to the value "myTableView", and that's where I need help. I'm specifically trying to add cells into the table view.
I'll assume that 'connected it to the value "myTableView"' means that you've control-dragged in XCode from the table view in Main Menu.xib to a property in your applescript app delegate called myTableView. If that's not the case, please correct me.
I prefer to use an array controller for this, so please drag an array controller object into main menu.nib. once you've done that, do the following:
open the applescript app delegate and add a new property called "tableController"
select the table view in the object list (you may need to open some disclosure triangles to reach it). and add appropriate (an) column name(s). you can hide column titles later if you like, but having named columns makes life easier.
select the array controller in the object list
rename the array controller "table data"
open the attributes inspector, and then add the column name(s) as key(s) in the object controller area
open the bindings inspector, and where it says "controller content", open the disclosure arrow and bind the content to the App Delegate object on the model key path self.tableController
select the table view in the object list again, then go down a level and select each column in turn
for each column, open the bindings inspector, and where it says "value", open the disclosure arrow and bind the content to the Table Data object with the controller key arrangedObjects model key path being the name of the column (which is the name of the key in the controller as well)
back in the applescript app delegate, add code like the following:
-- create a list of records, where each record represents a row and the column name is the record key
set myData to {{column_1_name:"hello"}}
-- convert it to an NSArray and add it to the controller content. don't forget the *my* keyword, or it won't work
set my tableController to NSArray's arrayWithArray:myData
-- may or may not be needed
myTableView's reloadData()
That should populate the table with simple text. if you want something more complicated (like buttons or links) then create the more complicated elements separately and add them to the data. -
How can I create a table in other's schema?
I have two users say 'user1' and 'sanju' along with other users in the database.Both the users are granted a connect role. I have connected as a 'sanju' user. Now I want to create a table in schema 'user1'.
Please note that user 'sanju' should not be allowed to create table in any other user's schema.
I have set the current schema of 'sanju' as 'user1'.
ALTER SESSION SET CURRENT_SCHEMA=USER1
I know that 'grant create ANY table to sanju' will allow 'sanju' to create table in all the schema. I dont want that. Is there any way to create a table in any other's schema?
Please answer ASAPThis is not directly possible, but you can use following workaround:
connect user1/passwd
create or replace procedure testCreateTable as
begin
execute immediate 'create table user1.testTable(c char)';
end test;
grant execute on testCreateTable to sanju;
connect sanju/passwd
execute testCreateTable
Of course, you can make this procedure more generic by specifying the necessary parameter.
Please not that this procedure only works, if user1 was granted the create table privilege directly, and not through a role (e.g. dba), because roles are disabled when executing -
Can you create a table of contents for the documents within a PDF Portfolio?
If I create a pdf portfolio that contains multiple documents (e.g. Word, multiple PDFs and Excel documents), is there a way to create a table of contents at the beginning of the portfolio to help navigate to the individual documents?
Hi,
The Files list displays a list of files, so the user can quickly see all the files in the portfolio with any information you want to share; title, description, file type, size etc.
Or, you can also use a different layout, for example, the Linear and use the space next to each file to describe it.
Hope this helps.......
JGaf -
Problem with table called User?
Hi!
I get the following error message. The error is that there should be a
space after the table name.
com.solarmetric.kodo.runtime.FatalDataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=INSERT INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX,
JDOLOCKX, LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
WANTSNEWSX) VALUES (null, '[email protected]', 'Mr.',
'com.everwhere.idiomatica.app.security.User', 0, 0, 'Admin', '**admin**',
0, null, 'admin', 0)]
[PRE=INSERT INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX,
JDOLOCKX, LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
WANTSNEWSX) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
Syntax error or access violation: You have an error in your SQL syntax.
Check the manual that corresponds to your MySQL server version for the
right syntax to use near 'User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX,
JDOIDX, JDOLOCKX, [code=1064;state=42000]
Shouldn't the
com.solarmetric.kodo.impl.jdbc.DictionaryClass:
com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
setting know how to write the sql statement? or is it a problem with the
table being called user?
Thanks,
Nic.It is fully dependent on your kodo.properties file:
See:
http://solarmetric.com/Software/Documentation/2.5.0/docs/ref_guide_conf_kodo.html#com.solarmetric.kodo.impl.jdbc.DictionaryProperties
On Wed, 18 Jun 2003 14:52:02 +0000, Nic Cottrell wrote:
Hi Stephen!
I changed the table name and everything works. As far as the InnoDB table
type goes - why does the schematool with ant build MyIsam tables if we
should be using InnoDB type tables?
Nic.
Stephen kim wrote:
I'm not 100% sure as I personally haven't played with mysql recently,
but I would suggest moving to a different table name as IIRC, it is
reserved for MySQL access info. If that doesn't resolve the problem, we
can reinvestigate the situation.
Also, be sure to use InnoDB table type if you expect any transactional
integrity in MySQL (see our docs)
On Wed, 18 Jun 2003 09:54:10 +0000, Nic Cottrell wrote:
Hi!
I get the following error message. The error is that there should be a
space after the table name.
com.solarmetric.kodo.runtime.FatalDataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT
INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX, JDOLOCKX,
LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
WANTSNEWSX) VALUES (null, '[email protected]', 'Mr.',
'com.everwhere.idiomatica.app.security.User', 0, 0, 'Admin',
'**admin**', 0, null, 'admin', 0)]
[PRE=INSERT INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX,
JDOLOCKX, LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
WANTSNEWSX) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] Syntax error
or access violation: You have an error in your SQL syntax. Check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX,
JDOIDX, JDOLOCKX, [code=1064;state=42000] -----------
Shouldn't the
com.solarmetric.kodo.impl.jdbc.DictionaryClass:
com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
setting know how to write the sql statement? or is it a problem with
the table being called user?
Thanks,
Nic.
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Maybe you are looking for
-
Z10 Battery died and now it wont turn back on after charging for 3 -5 hours
My phone completely died and i didnt charge it for about a day. I went to charge it the following day and it wont hold a charge. I plug the charger in and the red light on the top right of the phone turns on and then blackberry appears on the screen
-
Validation TC LC but same value
Hey Guys, I am looking for a solution for the following problem, I want to create a validation that checks wether LC-value and TC value are the same although the currency keys differ. Till now my tries weren't successfull. I tried implication but sy
-
Incremental Loading of a Tree Component
I'm working on an explorer-type interface in Flex 2 for browsing a remote file repository. It's a standard split-pane affair with a directory tree on the left and a listing on the right. Because the entire directory tree can be rather large, I need t
-
ESATA express card is available!!
http://store.yahoo.com/store4pc/sata-exc2.html Now I need 99 bucks. My enclosure is already ordered!
-
Clicking on Safari no longer gives option to open new windows
Hi, Snow Leopard is fast for me and has given me back 11 Gigs of space so I'm delighted . However, in Leopard - if you wanted a new safari window while another was already opened, all you had to do was keep the safari logo clicked, and in the options