We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2408.0
创建Oracle TOP SQL任务,无法从页面获取采集信息。日志中发现连接Oracle失败。
添加Oracle数据源,用户为sys, 创建Oracle TOP SQL扫描任务
sys用户需要添加 as sysdba的连接字符
var DBAPrivilege string
if strings.ToUpper(dsn.User) == "SYS" { DBAPrivilege = "AS SYSDBA" } sqlDB, err := sql.Open("oracle", fmt.Sprintf("oracle://%s:%s@%s:%s/%s%s", dsn.User, dsn.Password, dsn.Host, dsn.Port, dsn.ServiceName, DBAPrivilege)) if err != nil { return nil, errors.Wrapf(err, "failed to connect to %s", dsn.String()) } err = sqlDB.Ping() if err != nil { return nil, errors.Wrapf(err, "failed to ping %s", dsn.String()) }
The text was updated successfully, but these errors were encountered:
ColdWaterLW
No branches or pull requests
版本信息(Version)
3.2408.0
问题描述(Describe)
创建Oracle TOP SQL任务,无法从页面获取采集信息。日志中发现连接Oracle失败。
截图或日志(Log)
如何复现(To Reproduce)
添加Oracle数据源,用户为sys, 创建Oracle TOP SQL扫描任务
问题原因
解决方案
sys用户需要添加 as sysdba的连接字符
变更影响面
受影响的模块或功能
外部引用的潜在问题或风险
版本兼容性
测试建议
The text was updated successfully, but these errors were encountered: