首页 \ 问答 \ 如何在oracle上连接新创建的数据库?(How to connect to newly created database on oracle ?)

如何在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
更新时间:2021-09-26 14:09

最满意答案

如何less /var/log/syslog


How about less /var/log/syslog?

相关问答

更多
  • more、tail、cat、都可以查看日志,你所指的查看日志是想找出日志中的某一条吗?你说不明确。
  • 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 ...
  • 如果我做了一些更改,此代码在我的系统中正常工作: 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 ...
  • 灵感来自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 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)