谁能告诉我如何在 Cloudflare 中设置 DANE 和 TSLA?我们需要 Google Cloud DNS 来获取 TLSA 记录吗?此时哪个邮件服务器将允许使用 TLSA?
主页
/
user-710714
CADENTIC's questions
CADENTIC
Asked:
2021-09-15 05:11:54 +0800 CST
django.db.utils.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified
在 OCI 中反复收到错误连接数据库 ADW(自治数据库仓库 19c)以在 Oracle 云基础架构中部署 Django 项目
uname -a
Linux instance-20210913-1957 5.4.17-2102.204.4.4.el7uek.x86_64 #2 SMP Tue Aug 17 20:25:28 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
pip freeze
asgiref==3.4.1
cx-Oracle==8.0.0
Django==3.2.7
pytz==2021.1
sqlparse==0.4.2
typing-extensions==3.10.0.2
我在 /usr/lib/oracle/21/client64/lib/network/admin 中解压了区域钱包文件
我的sttings.py
DATABASES={
'default':
{
'ENGINE':'django.db.backends.oracle',
'NAME':'potatodbname',
'USER':'ADMIN',
'PASSWORD':'wieredpassword',#Please provide the db password here
}
}
完全错误:
python manage.py migrate
Traceback (most recent call last):
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 200, in connect
self.connection = self.get_new_connection(conn_params)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/oracle/base.py", line 233, in get_new_connection
**conn_params,
cx_Oracle.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 22, in <module>
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/core/management/commands/migrate.py", line 92, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/migrations/executor.py", line 18, in __init__
self.loader = MigrationLoader(self.connection)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/migrations/loader.py", line 53, in __init__
self.build_graph()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/migrations/loader.py", line 220, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
if self.has_table():
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/migrations/recorder.py", line 55, in has_table
with self.connection.cursor() as cursor:
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 259, in cursor
return self._cursor()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 235, in _cursor
self.ensure_connection()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 200, in connect
self.connection = self.get_new_connection(conn_params)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/var/www/cgi-bin/trydjango-dev/lib64/python3.6/site-packages/django/db/backends/oracle/base.py", line 233, in get_new_connection
**conn_params,
django.db.utils.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified
我错过了什么来得到那个错误?
CADENTIC
Asked:
2021-07-02 21:36:14 +0800 CST
我查看了云安装指南的所有页面,但没有正确提及 OCI 安装。
rpm -q al-config
al-config-1.1-1.el7.noarch
和
uname -a
Linux oci-magento 5.4.17-2102.202.5.el7uek.x86_64 #2 SMP Sat May 22 16:17:06 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
php -v
PHP 7.4.20 (cli) (built: Jun 3 2021 21:06:07) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
httpd -v
Server version: Apache/2.4.6 ()
Server built: Nov 10 2020 12:35:43
yum repolist
Loaded plugins: langpacks, ulninfo
repo id repo name status
ol7_UEKR6/x86_64 Latest Unbreakable Enterprise Kernel Rele 323
ol7_addons/x86_64 Oracle Linux 7Server Add ons (x86_64) 499
ol7_developer_php74/x86_64 Oracle Linux 7Server PHP 7.4 Packages for 575
ol7_ksplice Ksplice for Oracle Linux 7Server (x86_64) 14,712
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 22,772
ol7_oci_included/x86_64 Oracle Software for OCI users on Oracle L 1,118
ol7_optional_latest/x86_64 Oracle Linux 7Server Optional Latest (x86 16,318
ol7_software_collections/x86_64 Software Collection Library release 3.0 p 16,586
ol7_x86_64_userspace_ksplice Ksplice aware userspace packages for Orac 540
repolist: 73,443
php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
libxml
openssl
pcntl
pcre
Phar
readline
Reflection
session
sockets
SPL
standard
tokenizer
zlib
但我无法安装:
yum -y install php74u-pdo php74u-mysqlnd php74u-opcache php74u-xml php74u-gd php74u-devel php74u-mysql php74u-intl php74u-mbstring php74u-bcmath php74u-json php74u-iconv php74u-soap
谢谢sayantan