[英]Problems with connection in oracle database
Every time I restart or shutdown my computer, I need to make this command to connect to my database.每次重新启动或关闭计算机时,我都需要执行此命令来连接到我的数据库。
lsnrctl start
in shell (i'm working with ubuntu) lsnrctl start
在 shell 中lsnrctl start
(我正在使用 ubuntu)startup
in SQL commands(because it says that I'm connected as idle instance)在 SQL 命令中startup
(因为它说我作为空闲实例连接)So my problem is that I don't understand why I have to always tap these commands after restarting my computer.所以我的问题是我不明白为什么我必须在重新启动计算机后总是点击这些命令。
Second is that I can't create tables or accesses to tables in sqldeveloper or in eclipse because I don't have all the privileges.其次,我无法在 sqldeveloper 或 eclipse 中创建表或访问表,因为我没有所有权限。 Please, is there someone here who has any idea about the problem?请问,这里有人对这个问题有任何想法吗?
I don't use Linux.我不使用Linux。
However, on MS Windows, if you set listener and database services to start up automatically (when computer starts up), then database should be available to you in a matter of minutes.但是,在 MS Windows 上,如果您将侦听器和数据库服务设置为自动启动(计算机启动时),那么您应该会在几分钟内使用数据库。 If you can't do that on Ubuntu, then yes - you have to start the database manually.如果你不能在 Ubuntu 上这样做,那么是的 - 你必须手动启动数据库。
As of your second question: user you'd like to use to create tables, procedures etc. should be granted certain privileges.至于你的第二个问题:你想用来创建表、过程等的用户应该被授予某些特权。 They are granted by the same privileged user that created it, such as SYS.它们由创建它的同一特权用户授予,例如 SYS。 So: you'd connect as SYS and then run the some grants (presuming that your user name is "beline");所以:你会以 SYS 身份连接,然后运行一些授权(假设你的用户名是“beline”); for example:例如:
grant create session to beline;
grant create table to beline;
grant create procedure to beline;
grant create sequence to beline;
grant create view to beline;
There are other privileges as well;还有其他特权; grant them when necessary.必要时授予他们。
Once granted, they'll last "forever" (until you explicitly revoke them), which means that they will still be available to you after database restarts.一旦被授予,它们将“永远”持续(直到您明确撤销它们),这意味着在数据库重新启动后它们仍然可供您使用。 grant create trigger to beline;为 beline 授予创建触发器;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.