SQLServer 報錯:使用者、組或角色'XXX' 在當前資料庫中已存在. 錯誤:15023解決方法
分析:
將資料庫恢復到其他伺服器時,資料庫中包含一組使用者和許可權,但可能沒有相應的登入或者登入所關聯的使用者可能不是相同的使用者。
這種情況被稱為存在“孤立使用者”。此時是不能通過新建登入或者是對同名登入授予對應資料庫的“使用者”許可權來解決登入問題,
因為SQLServer會報出“錯誤15023:當前資料庫中已存在使用者或角色”,
簡單理解:
資料庫備份檔案中已經包含了使用者test,現在還原了資料庫,然後發現現有資料庫中沒有test這個使用者,想要新建一個test使用者,作為該資料庫的owner,便會出現這個問題。
可以理解為登入名和使用者是兩個不同的概念,雖然名稱相同。在新建登入名的時候,如果不新增該資料庫對映則不會報錯。新增資料庫對映相當於給該資料庫新增一個同名使用者。
但是已經存在了test這個使用者了,所以此時會報錯。
解決方法:
可以通過以下方法解決該問題。
1.新建一個test登入名,但是不要新增資料庫對映。
2.使用指令碼,將孤立使用者test關聯到登入名test上:
Use [資料庫名]
go
sp_change_users_login 'update_one', 'test', 'test'
相關推薦
SQLServer 報錯:使用者、組或角色39;XXX39; 在當前資料庫中已存在. 錯誤:15023解決方法
分析:將資料庫恢復到其他伺服器時,資料庫中包含一組使用者和許可權,但可能沒有相應的登入或者登入所關聯的使用者可能不是相同的使用者。這種情況被稱為存在“孤立使用者”。此時是不能通過新建登入或者是對同名登
SQLServer: 解決“錯誤15023:當前資料庫中已存在使用者或角色”
首先介紹一下sql server中“登入”與“使用者”的區別,“登入”用於使用者身份驗證,而資料庫“使用者”帳戶用於資料庫訪問和許可權驗證。登入通過安全識別符 (SID) 與使用者關聯。將資料庫恢復到其他伺服器時,資
上傳檔案請求報錯:找不到您的檔案,該檔案可能已被移至別處或遭到刪除。
一、描述 找不到您的檔案。該檔案可能已被移至別處或遭到刪除。ERR_FILE_NOT_FOUND
mybatis或hibernate框架連線資料庫報錯:java.sql.SQLException: Access denied for user 39;Administrator39;@39;localhost39; (using password: YES)
報錯資訊: java.sql.SQLException: Access denied for user \'Administrator\'@\'localhost\' (using password: YES)
SqlServer | 報錯‘對 COM 元件的呼叫返回了錯誤 HRESULT E_FAIL‘ | 匯入大sql檔案
問題一覽 在SQL Server Management Studio 開啟sql檔案報錯 對 COM 元件的呼叫返回了錯誤 HRESULT E_FAIL
SpringBoot報錯處理:Exception processing template "XXX": Error resolving template [XXX]、
一、Exception processing template \"XXX\": Error resolving template [XXX] springboot+thymeleaf中,訪問請求 user/login 時報錯,報錯內容如下:
Springboot啟動報錯Error creating bean with name 39;xxx39; defined in URL [xxx]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instan
Error creating bean with name \'xxx\' defined in URL [xxx]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [xxx]: Constru
springboot 報錯 Could not autowire. No beans of 39;XXX39; type found.
在idea開發專案時候,自動裝載的時候報錯Could not autowire. No beans of ‘DebtProdService’ type found.
升級完openssh版本後 xshell連線報錯 提示“伺服器傳送了一個意外的資料包。Received:3,expected:20” 問題解決
技術標籤:openssh升級xshell報錯sshlinuxcentos伺服器openssh 升級完openssh版本後 xshell連線報錯 提示“伺服器傳送了一個意外的資料包。Received:3,expected:20”
VUE報錯: Avoid mutating a prop directly since the value will be overwritten whenever the parent及解決方案
技術標籤:VUE.JS VUE報錯:[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on
【報錯記錄】Could not load dynamic library 39;libnvinfer.so.639;; dlerror: libnvinfer.so.6
執行import tensorflow的時候有如下報錯 (test1) a@10980:~$ python Python 3.6.13 |Anaconda, Inc.| (default, Jun4 2021, 14:25:59)
spring boot專案啟動報錯:Failed to load property source from location 39;classpath:/application.yml39;
控制檯報錯資訊:01:25:43.686 [main] ERROR org.springframework.boot.SpringApplication - Application run failedjava.lang.IllegalStateException: Failed to load property source from location \'classpath:
netcore在linux上使用FreeSpire.Word新增圖片報錯:System.DllNotFoundException: Unable to load shared library 39;libgdiplus39; or one of its dependencies.
按照網上的做法ubuntu安裝libgdiplus後又報了另一個錯誤: System.DllNotFoundException: Unable to load shared library \'libSkiaSharp\' or one of its dependencies. In order to help diagnose loading problem
VirtualBox報錯:不能為虛擬電腦XXX開啟一個新任務
問題描述:初始報錯:VirtualBox – Error in supR3HardenedWiReSpawnError relaunching VirtualBox VM process: 5supR3HardenedWinReSpawn what: 5 VERR_INVALID_NAME (-104) -Invalid (malformed) file/path name
npm run dev時 一堆報錯 (node:37693) Warning: Accessing non-existent property 39;chmod39; of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property \'cat\' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where the warning was created)(node:37693) Warning:
CentOS斷電重啟報錯:"Failed to open \EFI\BOOT\grubx64.efi - Not Found"的解決辦法
起因:伺服器意外斷電後文件丟失導致無法正常執行。 解決辦法: 1.準備一個centos的啟動盤;
在容器中建立的自己的centos,遇見的報錯:Errors during downloading metadata for repository 39;appstream39;:
編寫Dockerfile檔案 vim mydockerfile-centos FROM centos MAINTAINER zhaowx<[email protected]> ENV MYPATH /usr/local
寶塔安裝報錯: Failed to download metadata for redo 39;appstream39;
安裝寶塔的時候,出現錯誤:Failed to download metadata for redo \'appstream\': Cannot oredare internal mirrorlist: No URLs in mirrorlist
|NO.Z.00025|——————————|^^ 報錯 ^^|——|CI/CD&Maven私服Nexus3.V06|---------------------------------------------|Maven私服Nexus3常見錯誤|
[CloudNative:CI/CD&Maven私服Nexus3.V06] [Applications.CloudNative]
資料庫報:ORA-01196(ORA-10458/ORA-01110)錯誤的解決方法
發現問題 尚比亞的一個專案,主要做主從資料庫同步,主庫在尚比亞機房,從庫在中國青島阿里雲伺服器上面,通過Dataguard實現,當執行一段時間後,發現主從資料庫的資料不一致了,從庫無法啟動,報“ORA-01196: 檔案