I made this function but it return an error when i execute it!
create or replace function get_accounts (Acc_id in Account1.account_id%Type) return account1%r
To call a function in Oracle, you need to use its return value. That is, you can't call it as you would a procedure. Something like this would work:
declare myrow account1%rowtype; account_id Account1.account_id%Type := ; begin myrow := Get_Accounts(account_id); end; /