Redian新闻
>
How to creat user in Oracle?
avatar
How to creat user in Oracle?# Database - 数据库
l*s
1
I recently start learning the Oracle 9i. I installed the Oracle
in Linux under user Oracle. So when I login as Oracle, I type
sqlplus
Then it asks me user and password. I am confused about this. Since
I have not been able to open the Oracle database yet, how can I
have a user and password for the database? I must be able to login
in as an administrator and for the first time I should have a
default password. Is this right? I learnt that I can prompt to
sqlplus without login. But can I do any adm
avatar
p*e
2
Try scott/tiger. That's a typical set of username/password. There should be a
few users already created in your Oracle database. system/manager should work
too.

【在 l***s 的大作中提到】
: I recently start learning the Oracle 9i. I installed the Oracle
: in Linux under user Oracle. So when I login as Oracle, I type
: sqlplus
: Then it asks me user and password. I am confused about this. Since
: I have not been able to open the Oracle database yet, how can I
: have a user and password for the database? I must be able to login
: in as an administrator and for the first time I should have a
: default password. Is this right? I learnt that I can prompt to
: sqlplus without login. But can I do any adm

avatar
l*s
3
great! scott/tiger works! ^_^ thanks so much. btw, if a select result is
too long, how to slow it down and shown in multi-pages? like the |more
does for UNIX commands?
thank you

【在 p*********e 的大作中提到】
: Try scott/tiger. That's a typical set of username/password. There should be a
: few users already created in your Oracle database. system/manager should work
: too.

avatar
p*e
4
With SQL*Plus, I don't know if there is a way to make it stop at the end of
each page, like the |more does. You might have to try a different querying
tool. SQL*Plus is about the least user-friendly tool I've used.

be a
work

【在 l***s 的大作中提到】
: great! scott/tiger works! ^_^ thanks so much. btw, if a select result is
: too long, how to slow it down and shown in multi-pages? like the |more
: does for UNIX commands?
: thank you

avatar
m*t
5

When you are in sqlplus,
spool results.txt
select * from your table
spool off
would write all the rows selected to results.txt.

【在 l***s 的大作中提到】
: great! scott/tiger works! ^_^ thanks so much. btw, if a select result is
: too long, how to slow it down and shown in multi-pages? like the |more
: does for UNIX commands?
: thank you

avatar
l*s
6
I see. so there aren't commands to do the |more thing in sqlplus...
thanks..

【在 p*********e 的大作中提到】
: With SQL*Plus, I don't know if there is a way to make it stop at the end of
: each page, like the |more does. You might have to try a different querying
: tool. SQL*Plus is about the least user-friendly tool I've used.
:
: be a
: work

avatar
l*s
7
great, this way worked for me..thanks alot. ^_^

【在 m******t 的大作中提到】
:
: When you are in sqlplus,
: spool results.txt
: select * from your table
: spool off
: would write all the rows selected to results.txt.

avatar
l*s
8
oh, I just found something. I would like to share with your guys...^_^
we can use
set pause on;
to activate the paging feature, so that the ouput will pause at the end of
each screen...^_^
thanks

【在 l***s 的大作中提到】
: I see. so there aren't commands to do the |more thing in sqlplus...
: thanks..

avatar
p*e
9
Nice to know. Thanks :)

of
querying

【在 l***s 的大作中提到】
: oh, I just found something. I would like to share with your guys...^_^
: we can use
: set pause on;
: to activate the paging feature, so that the ouput will pause at the end of
: each screen...^_^
: thanks

avatar
l*s
10
hi, you know what? this scott/tiger pair worked for almost two days
and not it stops working...:( is it designed to be like that? let you
work with it for only the beginning? or what? now i have no user and
passwork to use le...555

【在 p*********e 的大作中提到】
: Try scott/tiger. That's a typical set of username/password. There should be a
: few users already created in your Oracle database. system/manager should work
: too.

avatar
m*t
11

use SYS/change_on_install, or SYSTEM/manager to log in as SYSDBA, then create
new users.
BTW, do take a hint from the default password and change it after the first
time you log in. 8-)

【在 l***s 的大作中提到】
: hi, you know what? this scott/tiger pair worked for almost two days
: and not it stops working...:( is it designed to be like that? let you
: work with it for only the beginning? or what? now i have no user and
: passwork to use le...555

avatar
l*s
12
both the SYS/change_on_install and the SYSTEM/manager are said to be :
ORA-01017: invalid username/password; logon denied
:(

【在 m******t 的大作中提到】
:
: use SYS/change_on_install, or SYSTEM/manager to log in as SYSDBA, then create
: new users.
: BTW, do take a hint from the default password and change it after the first
: time you log in. 8-)

avatar
m*t
13

Nobody else uses that oracle instance, right? Try those passwords again with
all upper-cases - I don't remember which cases they are...

【在 l***s 的大作中提到】
: both the SYS/change_on_install and the SYSTEM/manager are said to be :
: ORA-01017: invalid username/password; logon denied
: :(

avatar
s*e
14
after you log in to the oralce,
you can try this:
sqlplus /nolog
and you can connect as sysdba.
avatar
s*e
15
by the way, did you create your database? maybe you need to create your
database first. you can use "dbca" command and create your database.
avatar
s*m
16

You may want to create a database first before you create any user. Login as
dba create database, then create user with proper privilege in your database.
On Orace machine
sqlplus /nolog;
connect system as sysdba;
######Then create your user#############3
create user yourusername identified by 'password';
grant connect to yourusername;
grant resource to yourusername;
You need to setup appropriate tablespace for your user so user will not put
junk into system tablespace.

【在 s*******e 的大作中提到】
: by the way, did you create your database? maybe you need to create your
: database first. you can use "dbca" command and create your database.

avatar
l*s
17
this is very helpful...many thanks...^_^

【在 s***m 的大作中提到】
:
: You may want to create a database first before you create any user. Login as
: dba create database, then create user with proper privilege in your database.
: On Orace machine
: sqlplus /nolog;
: connect system as sysdba;
: ######Then create your user#############3
: create user yourusername identified by 'password';
: grant connect to yourusername;
: grant resource to yourusername;

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。