问题描述
CREATE DATABASE LINK db_abcCONNECT TO abc IDENTIFIED BY !ABCUSING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.XXX.XXX.XXX)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = oral) ) )';今天在PL/SQL中执行这条语句时报错,主要是语句中“!”造成的,在网上搜了些oracle转义的相关问题,发现将!改为 '||'!'||' 或者 chr(33) 还是不行,有谁知道这个该怎样转义?谢谢
解决方案
用双引号把密码引起来:"!ABC"
时间: 2024-11-08 20:18:44