Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > create user and tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-03, 01:02
nor nor is offline
Registered User
 
Join Date: Jan 2003
Location: malaysia
Posts: 6
create user and tables

hello, i'm new user in informix, so i want to create users and tables in iformix. In Oracle, we used sqlplus, but i don't know in informix.
Anybody plz help me.
Reply With Quote
  #2 (permalink)  
Old 05-13-03, 11:42
tlohan tlohan is offline
Registered User
 
Join Date: Jun 2002
Location: Ireland
Posts: 12
Informix comes with a tool called dbaccess which can be used to create databases, run SQL etc. The way to start it is, on Unix, type dbaccess db_name at the prompt.

As for creating users, as far as I know if your a valid Unix user and your environment has been setup correctly you should be able to access Informix
Reply With Quote
  #3 (permalink)  
Old 05-14-03, 02:52
ladwig ladwig is offline
Registered User
 
Join Date: May 2002
Location: Osnabrueck Germany
Posts: 59
Re: create user and tables

Hi,
to give or deny a User permission you can use
grant (CONNECT, RESOURE, DBS)
revoke
Possible for the DB, table or procedures.
__________________
Juergen Ladwig
Reply With Quote
  #4 (permalink)  
Old 05-28-03, 01:34
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
Re

- dbaccess $DB : interactive mode
- dbaccess $DB $SQLFILE : non-interactive mode
- echo "select count(*) from table" | dbaccess $DB : run sql from output pipe
- dbaccess $DB <<XXX
---- SQL Command
XXX : run sql from text area input

grant {connect,resource,dba} to user ;<--database grant
grant select,update,insert,delete,index,all on TABLE to USER as OWNER;
grant execute on PROC to USER as OWNER;

statements to revoke like grant but change 'grant' to 'revoke' and 'to' to 'from' and without 'as OWNER'
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On