如何在oracle上连接新创建的数据库?(How to connect to newly created database on oracle ?)
我在我的本地机器上使用oracle。 我正在使用预定义的数据库和模式,如scott of sysdba。 昨天我已经通过数据库配置助手创建了一个数据库,现在我试图通过sysdba输入用户名和密码来连接到那个新数据库;
SQL> connect username/password
但它给了
错误:ORA-01017:用户名/密码无效; 登录被拒绝;
警告:您不再与ORACLE连接。
我试过在谷歌搜索,有很多答案但没有任何相关性,并没有解决我的问题。
- 我如何连接到我创建的数据库?
- 我是否必须通过sysdba为该数据库创建用户?
- 我是否必须授予访问该数据库的任何权限?
请告诉我,如果我错过了什么,因为我是oracle上的菜鸟。 我需要连接到该数据库,因为我必须在该数据库中创建表空间和用户。
PS:我已经调查过了,新创建的数据库存在于sysdba数据库中。
I am using oracle on my local machine. i was using predefined databases and schema like scott of sysdba. yesterday i have created a database through database configuration assistant, now i am trying to connect to that new database by putting username and password through sysdba like;
SQL> connect username/password
but it gives
ERROR: ORA-01017: invalid username/password; logon denied;
WARNING: you are no longer connected to ORACLE.
i have tried searching on google and there are many answers but nothing is relevant and didn't solve my problem.
- how can i connect to that database which i have created ?
- do i have to make a user for that database through sysdba ?
- do i have to grant any privileges to access that database ?
please do tell me if i'm missing something as i am a noob on oracle. i need to connect to that database because i have to make tablespaces and users in that database.
PS: I have investigated, and the newly created database exist in sysdba databases.
原文:https://stackoverflow.com/questions/45219939
最满意答案
如何
less /var/log/syslog
?How about
less /var/log/syslog
?
相关问答
更多-
linux下的syslog日志如何去看[2023-05-14]
more、tail、cat、都可以查看日志,你所指的查看日志是想找出日志中的某一条吗?你说不明确。 -
linux下的syslog日志如何去看[2023-12-06]
more、tail、cat、都可以查看日志,你所指的查看日志是想找出日志中的某一条吗?你说不明确。 -
可能最好的方法是插入一个共享库(使用LD_PRELOAD ),您可以在其中提供自己可验证的syslog函数实现,以用于单元测试。 您根本不必让消息转到已安装的syslog守护程序(除非您愿意)。 Probably the best method is to interpose a shared library (using LD_PRELOAD) in which you provide your own verifiable implementations of the syslog functions ...
-
您的netcat命令根本不会模拟syslog,因为它发送的整个文件很可能不是syslog格式。 Your netcat command is not emulating syslog at all because it sends the whole file which is most likely not in syslog format either.
-
如何less /var/log/syslog ? How about less /var/log/syslog?
-
在我的Ubuntu机器上,我可以看到/var/log/syslog的输出。 如其他人所说,您的syslog()输出将由/var/log/syslog文件记录。 您可以在/var/log查看系统,用户和其他/var/log 。 更多细节:这里有一个有趣的链接 。 On my Ubuntu machine, I can see the output at /var/log/syslog. As noted by others, your syslog() output would be logged by th ...
-
尝试写入syslog(Try to write into syslog)[2022-09-08]
如果我做了一些更改,此代码在我的系统中正常工作: import logging.handlers as sh syslog_hdlr = sh.SysLogHandler(address='/dev/log', facility=sh.SysLogHandler.LOG_DAEMON) 和 root_logger.setLevel(logging.DEBUG) 因此,检查从config获取的日志记录级别并不比DEBUG更严格(例如:如果将其设置为INFO不会打印调试消息)。 如果您仍未在syslog上看 ... -
绝对的syslog ruby实现不允许我们使用自定义设施 。 syslog ruby实现使用syslog [C实现]( http://github.com/ruby/ruby/blob/trunk/ext/syslog/syslog.c#L36 )。 syslog C实现只允许我们使用非常短的设施名称列表: LOG_USER, LOG_MAIL, LOG_DAEMON, LOG_AUTH, LOG_SYSLOG, LOG_LPR, LOG_NEWS, LOG_UUCP, UUCP , LOG_CRON, L ...
-
PowerCLI包含Get-VMHostSysLogServer cmdlet。 在您的问题的上下文中,该命令将返回VMHost abc.com的Syslog服务器: Get-VMHostSysLogServer -VMHost abc.com PowerCLI includes the Get-VMHostSysLogServer cmdlet. In the context of your question, this command would return the Syslog Server fo ...
-
如何通过Bash Script在linux中检查rar是否安装?(How to check rar install or not in linux via Bash Script?)[2023-10-16]
灵感来自Michael Krelin - 黑客的帖子和python的和 - 或表达式,你可以输入: type -P rar > /dev/null && echo "rar is installed." || echo "rar is not installed." type -P unrar > /dev/null && echo "unrar is installed." || echo "unrar is not installed." Inspiration get from Michael Kr ...