📜  oracle 同义词包 dblink - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:55.256000             🧑  作者: Mango

代码示例1
CREATE OR REPLACE SYNONYM syn_name_proc FOR my_schema.my_procedure@my_dblink;
CREATE OR REPLACE SYNONYM syn_name_pkg my_schema.my_package@my_dblink;

-- Call:
BEGIN
    syn_name_proc@my_dblink();                            -- procedure
    my_schema.syn_name_proc@my_dblink(param1, param2);    -- if parameters
    syn_name_pkg.my_proc@my_dblink();                    -- my_proc in a package
END;