Sign Up

Sign Up to our social questions and Answers Engine 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 Engine 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

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 604413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:02:08+00:00 2026-05-13T17:02:08+00:00

I currently have 2 schemas, A and B. B has a table, and A

  • 0

I currently have 2 schemas, A and B.

B has a table, and A executes selects inserts and updates on it.

In our sql scripts, we have granted permissions to A so it can complete its tasks.

grant select on B.thetable to A
etc,etc

Now, table ‘thetable’ is dropped and another table is renamed to B at least once a day.

rename someothertable to thetable

After doing this, we get an error when A executes a select on B.thetable.

ORA-00942: table or view does not exist

Is it possible that after executing the drop + rename operations, grants are lost as well?

Do we have to assign permissions once again ?

update

someothertable has no grants.

update2

The daily process that inserts data into ‘thetable’ executes a commit every N insertions, so were not able to execute any rollback. That’s why we use 2 tables.

Thanks in advance

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

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:02:09+00:00Added an answer on May 13, 2026 at 5:02 pm

    Yes, once you drop the table, the grant is also dropped.

    You could try to create a VIEW selecting from thetable and granting SELECT on that.

    Your strategy of dropping a table regularly does not sound quite right to me though. Why do you have to do this?

    EDIT

    There are better ways than dropping the table every day.

    1. Add another column to thetable that states if the row is valid.

    2. Put an index on that column (or extend your existing index that you use to select from that table).

    3. Add another condition to your queries to only consider “valid” rows or create a view to handle that.

    4. When importing data, set the new rows to “new”. Once the import is done, you can delete all “valid” rows and set the “new” rows to “valid” in a single transaction.

    If the import fails, you can just rollback your transaction.

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

Sidebar

Related Questions

I have a table which has an unique key with 2 constraints in it.
I have a WPF application which uses a (currently) local database to act as
I have a table of destinations ( states ) which contain primary level categories
I have a table with a primary key (lets call it person), and another
I store time-series simulation results in PostgreSQL. The db schema is like this. table
I'm currently in the middle of a reasonably large question / answer based application
I have the following db-schema . FILE , GROUP and BLOCK represent the object
I am designing an ASP.NET MVC 2 application. Currently I am leveraging Entity Framework
I would like to know if it is possible to simplify the following process:
I'm struggling to get my query working. Basically, what it should do is only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.