SQL*Plus 中的“2”是什么意思?
我是甲骨文的新手。 我遇到了一个问题。
首先,我想检查sysman帐户的权限:
SQL> select * from dba_sys_privs where grantee='sysman';
no rows selected
我知道这意味着我的视图dba_sys_privs中没有内容。但无论如何,我已经建立了一个数据库。所以,我再试一次,只是缩短语句:
SQL> select * from dba_sys_privs
2
所以这是我的两个问题:
- 我的数据库发生了什么?我已经建立了一个数据库,
- “2”是什么意思?它意味着下一行还是其他什么?
I am new to Oracle.
And I have come across a problem.
Firstly,I want to check the privileges of the sysman account:
SQL> select * from dba_sys_privs where grantee='sysman';
no rows selected
I know that it means there is no content in my view dba_sys_privs. But anyway,I have aready built a database. So, I try again, just shortening the statement:
SQL> select * from dba_sys_privs
2
So here are my two questions:
- what happened to my database? I have already set up a database
- what does the "2" mean? Does it mean the next row or something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您输入了一个新行字符(按了
return
),但没有输入语句终止符,即;
。将您的第二个声明与您发布的第一个声明进行比较。所以是的,2
意味着客户端正在等待进一步的输入。要运行第二条语句,只需输入斜杠
/
至于为什么第一条语句没有返回任何行,在 Oracle 数据库中对象名称(包括用户)都是大写的。
You have entered a new line character (pressed
return
) without entering a statement termination i.e.;
. Compare your second statement with the first one you posted. So yes, the2
means the client is awaiting further input.To run the second statement, simply enter a slash
/
As for why your first statement returned no rows, in Oracle database object names (including users) are in upper-case.
由于我的插入没有按预期工作,我遇到了类似的情况。我使用了一条插入语句,后面跟着“commit;”,它只是说已提交,但是当我使用sql Developer查看记录时,我找不到它。所以我尝试从 sqlplus 运行 select 并得到一个数字。
后来DBA告诉我跳过“提交”,然后我就可以看到抛出的异常。
I encountered similar situaion due to my inserts did not work as expected. I used a insert statement followed by "commit;", it just says committed, but when I use sql developer to view the record, I could not find it. So I tried to run select from sqlplus and got a number.
Later DBA told me to skip the "commit", then I could see the exception thrown.