Hello guys
I am new to using Unix and was hoping somebody could help me. Essentially, I am trying to clean out my database. For example, I have a directory filled with 100s of analytics and I want to know if they are used by any other analytics or if they are used by the front end user interface platforms. When I run
grep -rl (analytic_name)
it returns other analytics where this analytic is used. But i would like to run something that means i don't have to go through them one by one.
Thank you very much. Any help is appreciated
Regarding deleting "database files" .... how can you consider deleting "database" files when you do not know what database application you are running?
Are you sure you mean "database" files? What kind of database, exactly?
[LSB Version: :core-4.1-amd64:core-4.1-noarch]
[Distributor ID: RedHatEnterpriseServer]
[Description: Red Hat Enterprise Linux Server release 7.7 (Maipo)]
[Release: 7.7]
[Codename: Maipo]
I am using kdb+/q technology for the databases/UI's etc. Is this is what you are referring to? Thank you
I wasn't planning on editing any of the tables, it was more deleting the analytics/functions that are not used to create these tables anymore.
eg) Analytic_X creates table A.
Then we add some additional logic to Analytic_X and create Analytic_Y.
Analytic_Y now creates Table A.
So I was hoping there was some command that retrieves the likes of Analytic_X that are not connected with anything so they can be removed? Hope that makes sense.
I don't want to truncate or reduce any tables. I want to delete analytic files that do not create any tables.
So from the backend I can go into the analytic directory where there are 100s of files (some create tables, some are old and need deleting). i don't want to touch the ones that create tables but delete the ones not connected to anything. I thought there might be a command to search for files that are used or not.