How to archive oracle tables

We are currently on oracle 11g rel2.over time oracle tables grown too big and having multi millions of rows.
To improve performance it is agreed by business to archive data older than 5 years and keep only the latest 5 years in current tables.
Business team identified the tables and advised to create new tables like tablename_hist and put the data of tablename into tablename_hist.
Like below:
Student tables archive will be student_hist.
The question is how can I identify older data in a table which is older than 5 years?
Is there something buit in within oracle?
OranewAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johnsoneSenior Oracle DBACommented:
A few million records isn't an issue.  We have tables with 100s of millions and billions of records that all have sub second response times.  You really need to tune your queries to get better performance, deleting records or moving them to another table just defers the problem, it doesn't solve it.

There is nothing built in to Oracle that will tell you if a record is 5 years old.  You would have to have some sort of date stored in your table to determine that and need to come up with some rules on how to determine whether to archive a record or not.

Using your student example.  What if a student took a class over 5 years ago, but also took a class only 2 years ago?  Do you archive the 5+ year old class record?  If you do, how does you get a full picture of the student's history?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.