Sign Up

Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
Home/ Questions/Q 5846
Next
Answered

Oraask Latest Questions

Question
Mina
  • 0
  • 0
Mina
Asked: July 12, 20172017-07-12T16:37:43+03:00 2017-07-12T16:37:43+03:00In: Oracle Applications DBA

How to Create a Read Only Schema in Oracle Application R12 ?

  • 0
  • 0

Hi,

I need to create a Schema like APPS Schema in Oracle Application R12 but read only.

 

Thanks,

Mina

1
  • 1 1 Answer
  • 1k Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    Related Questions

    • Unable to determine SMTP server to use: set FND_SMTP_HOST" Error
    • Download and Upload Workflow Files in Oracle APPS R12
    • Tablespace size
    • How to extracts DDL statements for specified objects ?
    • How to see lock on table and query?

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. Mmorsy
      Best Answer
      Mmorsy Junior mahmoudmorsymm1985@gmail.com
      2017-07-20T08:09:41+03:00Added an answer on July 20, 2017 at 8:09 am

      Hello Mina,

      you can follow the below Steps:

      Method :1

      [code]

      SQL> CREATE USER APPSREAD IDENTIFIED BY APPSREAD;
      User created.

      SQL> GRANT CONNECT, RESOURCE,CREATE SYNONYM TO APPSREAD;
      Grant succeeded.
      [/code]

      Generate a Script for creating database objects of Application User ‘APPS’.

      [code]
      set echo off set
      pagesize 0
      set linesize 300
      spool cr8synonyms.sql
      select ‘create synonym ‘ || OBJECT_NAME || ‘ for ‘|| OWNER ||’.’ ||OBJECT_NAME || ‘;’ from all_objects where OWNER in (‘APPS’) and
      OBJECT_NAME not like ‘%/%’ and OBJECT_TYPE in (‘TABLE’,’VIEW’,’SYNONYM’);
      spool off

      [/code]

       

      Generate a script for selecting database objects of Application User ‘APPS’.

      [code]
      spool GrantSelect.sql
      select ‘grant select on ‘|| OWNER ||’.’ ||OBJECT_NAME || ‘ to APPSREAD;’ from all_objects where OWNER not in (‘SYS’,’SYSTEM’) and OBJECT_NAME not like ‘%/%’ and OBJECT_TYPE in (‘TABLE’,’VIEW’,’SYNONYM’);
      spool off

      [/code]

      Connect to sqlplus as sysdaba and execute the following script

      [code]
      SQL> @GrantSelect.sql
      SQL> @cr8synonyms.sql
      [/code]

       

      Connect to Read only schema User and check the objects.

      [code]
      SQL> conn APPSREAD/APPSREAD Connected.
      SQL> select count(*) from tab;
      COUNT(*) ———- 15515
      [/code]

       

      Regards.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Adv 250x250

    Explore

    • Categories
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Dev Tools
      • Online Compiler
      • Base64 Converter
    • Wiki
      • SQL Tutorials
      • Java Tutorials
      • Python Tutorials
      • JavaScript Tutorials

    Footer

    Oraask

    About

    Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

    About Us

    • About Us
    • Contact Us

    Legal Stuff

    • Privacy Policy
    • Terms & Conditions

    Follow

    Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

    © 2019 Oraask. All Rights Reserved
    With Love by Oraask.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.