Skip to content

Oracle net connect error #1600

@danielsrod

Description

@danielsrod
  1. What versions are you using?
    6.1.0
  1. Is it an error or a hang or a crash?
    crash

  2. What error(s) or behavior you are seeing?
    error: Failed to connect
    at connect (node:net:222:18)
    at /home/danielsrod/projects/personal/bun-databases/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:181:22

  1. Include a runnable Node.js script that shows the problem.
import oracledb, { 
    BindParameters, 
    ExecuteOptions, 
    BIND_IN, 
    STRING, 
    NUMBER, 
    PoolAttributes, 
    OUT_FORMAT_OBJECT, 
    BIND_OUT, 
    Pool, 
    Connection,
    Result,
    createPool,
    getConnection,
} from 'oracledb';

const options: PoolAttributes = {
    user: '',
    password: '',
    connectionString: ``,
};

const connection: Pool = await createPool(options);
const db: Connection = await getConnection(options);

const sql: string = `
    
`;

const binds: BindParameters = {
    
}

const execOptions: ExecuteOptions = {
    autoCommit: true,
    outFormat: OUT_FORMAT_OBJECT,
};

const result: Result<unknown> = await db.execute(sql, binds, execOptions);
console.log(result.rows);
process.exit(0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions