ora-12169 tns net service name given as connect identifier is too long
啟用監聽器動態註冊後,根據$ORACLE_HOME/network/admin/samples目錄,有tnsnames.ora配置示例,執行:
sqlplus as sysdba報如題錯誤
檢視此檔案的相關說明及使用後,修正如下:
-bash-3.2$ pwd
/oracle/product/10.2.0/db_1/network/admin
-bash-3.2$ more tnsnames.ora
# This file contains the syntax information for
# the entries to be put in any tnsnames.ora file
# The entries in this file are need based.
# There are no defaults for entries in this file
# that Sqlnet/Net3 use that need to be overridden
#
# Typically you could have two tnsnames.ora files
# in the system, one that is set for the entire system
# and is called the system tnsnames.ora file, and a
# second file that is used by each user locally so that
# he can override the definitions dictated by the system
# tnsnames.ora file.
/oracle/product/10.2.0/db_1/network/admin
-bash-3.2$ more tnsnames.ora
# This file contains the syntax information for
# the entries to be put in any tnsnames.ora file
# The entries in this file are need based.
# There are no defaults for entries in this file
# that Sqlnet/Net3 use that need to be overridden
#
# Typically you could have two tnsnames.ora files
# in the system, one that is set for the entire system
# and is called the system tnsnames.ora file, and a
# second file that is used by each user locally so that
# he can override the definitions dictated by the system
# tnsnames.ora file.
# The entries in tnsnames.ora are an alternative to using
# the names server with the onames adapter.
# They are a collection of aliases for the addresses that
# the listener(s) is(are) listening for a database or
# several databases.
# the names server with the onames adapter.
# They are a collection of aliases for the addresses that
# the listener(s) is(are) listening for a database or
# several databases.
# The following is the general syntax for any entry in
# a tnsnames.ora file. There could be several such entries
# tailored to the user's needs.
# a tnsnames.ora file. There could be several such entries
# tailored to the user's needs.
orcl= #如果有多個description,這兒本身有個description_list節,因為我們只 邊一個主機上面的資料庫,所有不用 description_list
# one or more descriptions
# If there is just one description, unnecessary ]
(DESCRIPTION=
# Can take values between 512 and 32K
# one or more addresses
# If there is just one address, unnecessary ]
# one or more descriptions
# If there is just one description, unnecessary ]
(DESCRIPTION=
# Can take values between 512 and 32K
# one or more addresses
# If there is just one address, unnecessary ]
#同上,本身也有一個address list節,如有多個address的話
(ADDRESS=
(PROTOCOL=tcp)
(HOST=192.168.19.155)
(PORT=1521)
)
(ADDRESS=
(PROTOCOL=tcp)
(HOST=192.168.19.155)
(PORT=1521)
)
#連線到哪個資料庫(sid及global_name)
(CONNECT_DATA=
(SID=orcl)
(GLOBAL_NAME=orcl)
)
)
-bash-3.2$
(SID=orcl)
(GLOBAL_NAME=orcl)
)
)
-bash-3.2$
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-665509/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 表結構遷移檔案Identifier name 'xxxxxx' is too long解決IDE
- Oracle案例05——ORA-12162: TNS:net service name is incorrectly specifiedOracle
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- File name too long window和linux排查,解決Linux
- ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
- 關於hibernate的 No row with the given identifier existsIDE
- data too long for column
- Error running ‘Application’Command line is too longErrorAPP
- ORA-01489: result of string concatenation is too long
- 關於Argument list too long的問題
- Specified key was too long; max key length is 1000 bytes
- ORA-12519 TNS:no appropriate service handler foundAPP
- SAP:CX_SY_READ_SRC_LINE_TOO_LONG解決
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- mysql specified key was too long與Index column size too large. The maximum column size is 767 bytes.MySqlIndex
- Oracle修改instance_name、db_name、db_unique_name、service_namesOracle
- 刪除大量檔案Argument list too long錯誤解決
- git拉取程式碼報錯filename too long unable to create fileGit
- 偶遇ERROR 1071 (42000): Specified key was too long; max key length is 767 bytesError
- 解決 Specified key was too long ... 767 bytes 的本質問題
- Command line is too long. Shorten command line for JooLunMallApiApplication or also for Spring Boot default configuration?APIAPPSpring Boot
- 執行遷移檔案報錯 1071 Specified key was too long.
- Leetcode每日一題:925Long Pressed Name(長按鍵入)LeetCode每日一題
- Excel為批註設定圖片背景 出現Bad Request - Request Too longExcel
- idea遇見Command line is too long. Shorten command line for Main or also for Application default configuration?IdeaAIAPP
- IntelliJ IDEA 執行專案的時候提示 Command line is too long 錯誤IntelliJIdea
- RMAN備份出現ORA-01801: date format is too long for internal buffer錯誤ORM
- idea在使用git clone 時出現Filename too long的報錯資訊IdeaGit
- [20210113]SP2-0232 Input too long. Must be less than 241 characters.txt
- ORA-12899: value too large for column ORG_NAME (actual: 145, maximum: 128)
- C# The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size.C#MIT
- 網路協議之:Domain name service DNS詳解協議AIDNS
- 【k8s】etcd叢集took too long to execute慢日誌告警問題分析K8S
- .NET Core中的Worker Service
- Oracle案例04——TNS-12547: TNS:lost contactOracle
- SqlServer遇到SPN_Service Principal name問題的處理方法SQLServer
- Spring Boot Intellij 執行應用的時候 Command line is too long. Shorten command line for 錯誤Spring BootIntelliJ
- IDEA命令列縮短器助你解決此問題:Command line is too long. Shorten command line...Idea命令列
- 問題解決:TNS-12543: TNS:destination host unreachable